chore: update build package config (#653)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
d902ed9e81
commit
b0b6ea5dd8
|
|
@ -4,15 +4,9 @@ aliveTime: 0s
|
||||||
# daemon gc task running interval
|
# daemon gc task running interval
|
||||||
gcInterval: 1m0s
|
gcInterval: 1m0s
|
||||||
|
|
||||||
# daemon data directory
|
|
||||||
dataDir: /home/t4/dragonfly/
|
|
||||||
|
|
||||||
# daemon work directory, daemon will change current working directory to this
|
|
||||||
workHome: /home/t4/dragonfly/
|
|
||||||
|
|
||||||
# when daemon exit, keep peer task data or not
|
# when daemon exit, keep peer task data or not
|
||||||
# it is usefully when upgrade daemon service, all local cache will be saved
|
# it is usefully when upgrade daemon service, all local cache will be saved
|
||||||
keepStorage: false
|
keepStorage: true
|
||||||
|
|
||||||
# all addresses of all schedulers
|
# all addresses of all schedulers
|
||||||
# the schedulers of all daemons should be same in one region or zone.
|
# the schedulers of all daemons should be same in one region or zone.
|
||||||
|
|
@ -22,7 +16,11 @@ scheduler:
|
||||||
# below example is a stand address
|
# below example is a stand address
|
||||||
netAddrs:
|
netAddrs:
|
||||||
- type: tcp
|
- type: tcp
|
||||||
addr: 127.0.0.1:8002
|
addr: scheduler-0.dragonfly-system.svc:8002
|
||||||
|
- type: tcp
|
||||||
|
addr: scheduler-1.dragonfly-system.svc:8002
|
||||||
|
- type: tcp
|
||||||
|
addr: scheduler-2.dragonfly-system.svc:8002
|
||||||
# schedule timeout
|
# schedule timeout
|
||||||
scheduleTimeout: 10s
|
scheduleTimeout: 10s
|
||||||
|
|
||||||
|
|
@ -74,42 +72,30 @@ download:
|
||||||
tcpListen:
|
tcpListen:
|
||||||
# listen address
|
# listen address
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# listen port, daemon will try to listen
|
port:
|
||||||
# when this port is not available, daemon will try next port
|
start: 65010
|
||||||
port: 65000
|
end: 65019
|
||||||
# if want to limit upper port, please use blow format
|
|
||||||
# port:
|
|
||||||
# start: 65000
|
|
||||||
# end: 65009
|
|
||||||
|
|
||||||
# proxy config file location or detail config
|
|
||||||
# proxy: ""
|
|
||||||
|
|
||||||
# upload service option
|
# upload service option
|
||||||
upload:
|
upload:
|
||||||
# upload limit per second
|
# upload limit per second
|
||||||
rateLimit: 1024Mi
|
rateLimit: 200Mi
|
||||||
security:
|
security:
|
||||||
insecure: true
|
insecure: true
|
||||||
cacert: ""
|
cacert: ""
|
||||||
cert: ""
|
cert: ""
|
||||||
key: ""
|
key: ""
|
||||||
tcpListen:
|
tcpListen:
|
||||||
# listen address
|
|
||||||
listen: 0.0.0.0
|
listen: 0.0.0.0
|
||||||
# listen port, daemon will try to listen
|
port:
|
||||||
# when this port is not available, daemon will try next port
|
start: 65020
|
||||||
port: 65002
|
end: 65029
|
||||||
# if want to limit upper port, please use blow format
|
|
||||||
# port:
|
|
||||||
# start: 65020
|
|
||||||
# end: 65029
|
|
||||||
|
|
||||||
# peer task storage option
|
# peer task storage option
|
||||||
storage:
|
storage:
|
||||||
# task data expire time
|
# task data expire time
|
||||||
# when there is no access to a task data, this task will be gc.
|
# when there is no access to a task data, this task will be gc.
|
||||||
taskExpireTime: 1m0s
|
taskExpireTime: 10m0s
|
||||||
# storage strategy when process task data
|
# storage strategy when process task data
|
||||||
# io.d7y.storage.v2.simple : download file to data directory first, then copy to output path, this is default action
|
# io.d7y.storage.v2.simple : download file to data directory first, then copy to output path, this is default action
|
||||||
# the download file in date directory will be the peer data for uploading to other peers
|
# the download file in date directory will be the peer data for uploading to other peers
|
||||||
|
|
@ -117,10 +103,13 @@ storage:
|
||||||
# fast than simple strategy, but:
|
# fast than simple strategy, but:
|
||||||
# the output file will be the peer data for uploading to other peers
|
# the output file will be the peer data for uploading to other peers
|
||||||
# when user delete or change this file, this peer data will be corrupted
|
# when user delete or change this file, this peer data will be corrupted
|
||||||
strategy: io.d7y.storage.v2.simple
|
strategy: io.d7y.storage.v2.advance
|
||||||
|
multiplex: true
|
||||||
|
|
||||||
# proxy service option
|
# proxy service option
|
||||||
proxy:
|
proxy:
|
||||||
|
maxConcurrency: 12
|
||||||
|
defaultFilter: Expires&Signature
|
||||||
security:
|
security:
|
||||||
insecure: true
|
insecure: true
|
||||||
cacert: ""
|
cacert: ""
|
||||||
|
|
@ -132,41 +121,6 @@ proxy:
|
||||||
# listen port, daemon will try to listen
|
# listen port, daemon will try to listen
|
||||||
# when this port is not available, daemon will try next port
|
# when this port is not available, daemon will try next port
|
||||||
port: 65001
|
port: 65001
|
||||||
# if want to limit upper port, please use blow format
|
|
||||||
# port:
|
|
||||||
# start: 65020
|
|
||||||
# end: 65029
|
|
||||||
registryMirror:
|
|
||||||
# url for the registry mirror
|
|
||||||
url: https://index.docker.io
|
|
||||||
# whether to ignore https certificate errors
|
|
||||||
insecure: true
|
|
||||||
# optional certificates if the remote server uses self-signed certificates
|
|
||||||
certs: [ ]
|
|
||||||
# whether to request the remote registry directly
|
|
||||||
direct: false
|
|
||||||
|
|
||||||
proxies:
|
proxies:
|
||||||
- regx: shells/.*\.sh
|
# proxy all sha256 layer requests with dfget
|
||||||
# proxy all http image layer download requests with dfget
|
- regx: (blobs|manifests|config)/sha256.*
|
||||||
- regx: blobs/sha256.*
|
|
||||||
# change http requests to some-registry to https and proxy them with dfget
|
|
||||||
- regx: some-registry/
|
|
||||||
useHTTPS: true
|
|
||||||
# proxy requests directly, without dfget
|
|
||||||
- regx: no-proxy-reg
|
|
||||||
direct: true
|
|
||||||
# proxy requests with redirect
|
|
||||||
- regx: some-registry
|
|
||||||
redirect: another-registry
|
|
||||||
|
|
||||||
hijackHTTPS:
|
|
||||||
# key pair used to hijack https requests
|
|
||||||
cert: ""
|
|
||||||
key: ""
|
|
||||||
hosts:
|
|
||||||
- regx: mirror.aliyuncs.com:443 # regexp to match request hosts
|
|
||||||
# whether to ignore https certificate errors
|
|
||||||
insecure: true
|
|
||||||
# optional certificates if the host uses self-signed certificates
|
|
||||||
certs: [ ]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
systemctl daemon-reload
|
chmod a+s /usr/bin/dfget
|
||||||
|
|
||||||
systemctl enable dfget-daemon.service
|
which systemctl && (systemctl daemon-reload; systemctl enable dfget-daemon.service)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
systemctl daemon-reload
|
which systemctl && systemctl daemon-reload
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
systemctl stop dfget-daemon.service
|
which systemctl && (systemctl stop dfget-daemon.service; systemctl disable dfget-daemon.service)
|
||||||
|
|
||||||
systemctl disable dfget-daemon.service
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ priority: extra
|
||||||
description: dfget is the client of Dragonfly used to download and upload files
|
description: dfget is the client of Dragonfly used to download and upload files
|
||||||
license: "Apache 2.0"
|
license: "Apache 2.0"
|
||||||
homepage: https://d7y.io
|
homepage: https://d7y.io
|
||||||
|
maintainer: Dragonfly Maintainers
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- dfget
|
- dfget
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue