Giter Site home page Giter Site logo

lug's Introduction

lug

release Go Report Card Build Status Docker pulls Apache License

Extensible backend of software mirror. Read our Wiki for usage and guides for developmenet.

Use it in docker

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...}

config.yaml

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

Development

Contributors should push to their own branch. Reviewed code will be merged to master branch.

Currently this project assumes Go >= 1.8.

  1. set your GOPATH to a directory: export GOPATH=/home/go. Set $GOPATH/bin to your $PATH: export PATH=$PATH:$GOPATH/bin
  2. go get github.com/sjtug/lug
  3. Install dep by curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  4. cd $GOPATH/src/github.com/sjtug/lug && dep ensure
  5. Modify code, then use go build . to build binary, or test with go test $(go list ./... | grep -v /vendor/)
  6. Run scripts/gen_license.sh before committing your code

NOTICE: Please attach test files when contributing to your module

lug's People

Contributors

htfy96 avatar lv-zheng avatar hawnzug avatar codeworm96 avatar gaocegege avatar endle avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.