Extensible backend of software mirror. Read our Wiki for usage and guides for developmenet.
docker run -d -v {{host_path}}:{{docker_path}} -v {{absolute_path_of_config.yaml}}:/go/src/github.com/sjtug/lug/config.yaml htfy96/lug {other args...}
The below configuration may be outdated. Refer to config.example.yaml and Wiki for the latest version.
interval: 3 # Interval between pollings
loglevel: 5 # 0-5. 0 for ERROR and 5 for DEBUG
logstashaddr: "172.0.0.4:6000" # TCP Address of logstash. empty means no logstash support
dummy: # place your anchor here!
common_interval: &common_interval
interval: 3600
repos:
- type: shell_script
script: rsync -av rsync://rsync.chiark.greenend.org.uk/ftp/users/sgtatham/putty-website-mirror/ /tmp/putty
name: putty
rlimit: 300M
<<: *common_interval # interval: 3600 will be inserted here
- type: external
name: ubuntu
proxy_to: http://ftp.sjtu.edu.cn/ubuntu/
<<: *common_interval
# You can add more repos here, different repos may have different worker types,
# refer to Worker Types section for detailed explanation
Contributors should push to their own branch. Reviewed code will be merged to master branch.
Currently this project assumes Go >= 1.8.
GOPATH to a directory: export GOPATH=/home/go. Set $GOPATH/bin to your $PATH: export PATH=$PATH:$GOPATH/bingo get github.com/sjtug/lugcurl https://raw.githubusercontent.com/golang/dep/master/install.sh | shcd $GOPATH/src/github.com/sjtug/lug && dep ensurego build . to build binary, or test with go test $(go list ./... | grep -v /vendor/)scripts/gen_license.sh before committing your codeNOTICE: Please attach test files when contributing to your module
Content type
Image
Digest
Size
47.5 MB
Last updated
over 8 years ago
docker pull htfy96/lug