{"id":20188454,"url":"https://github.com/sjtug/lug","last_synced_at":"2025-04-10T06:50:24.428Z","repository":{"id":54283935,"uuid":"61807267","full_name":"sjtug/lug","owner":"sjtug","description":"Extensible backend of software mirror","archived":false,"fork":false,"pushed_at":"2025-03-23T04:00:15.000Z","size":895,"stargazers_count":29,"open_issues_count":7,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-23T04:26:39.312Z","etag":null,"topics":["backend","golang","mirror"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjtug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-23T13:27:54.000Z","updated_at":"2025-03-23T04:00:19.000Z","dependencies_parsed_at":"2024-06-19T01:25:03.201Z","dependency_job_id":"0b5cd3b9-9119-4181-a002-1532fbfbc3f1","html_url":"https://github.com/sjtug/lug","commit_stats":{"total_commits":215,"total_committers":9,"mean_commits":23.88888888888889,"dds":0.3069767441860465,"last_synced_commit":"3a583b6de6d863a3c52870939550a96190596463"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjtug%2Flug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjtug%2Flug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjtug%2Flug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjtug%2Flug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjtug","download_url":"https://codeload.github.com/sjtug/lug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173852,"owners_count":21059595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","golang","mirror"],"created_at":"2024-11-14T03:29:08.572Z","updated_at":"2025-04-10T06:50:24.420Z","avatar_url":"https://github.com/sjtug.png","language":"Go","readme":"# lug \n[![release](https://img.shields.io/github/release/sjtug/lug.svg)](https://github.com/sjtug/lug/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sjtug/lug)](https://goreportcard.com/report/github.com/sjtug/lug)\n[![Build Status](https://travis-ci.org/sjtug/lug.svg)](https://travis-ci.org/sjtug/lug)\n[![Docker pulls](https://img.shields.io/docker/pulls/htfy96/lug.svg)](https://hub.docker.com/r/htfy96/lug/)\n[![Apache License](https://img.shields.io/github/license/sjtug/lug.svg)](https://github.com/sjtug/lug/blob/master/LICENSE)\n\nExtensible backend of software mirror. Read our [Wiki](https://github.com/sjtug/lug/wiki) for usage and guides for developmenet.\n\n## Use it in docker\n```\ndocker 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...}\n```\n\n### config.yaml\n\nThe below configuration may be outdated. Refer to [config.example.yaml](https://github.com/sjtug/lug/blob/master/config.example.yaml)\nand [Wiki](https://github.com/sjtug/lug/wiki/Configuration) for the latest version.\n\n```\ninterval: 3 # Interval between pollings\nloglevel: 5 # 0-5. 0 for ERROR and 5 for DEBUG\nlogstashaddr: \"172.0.0.4:6000\" # TCP Address of logstash. empty means no logstash support\ndummy: # place your anchor here!\n    common_interval: \u0026common_interval\n      interval: 3600\n    common_retry: \u0026commone_retry\n      retry: 3\nrepos:\n    - type: shell_script\n      script: rsync -av rsync://rsync.chiark.greenend.org.uk/ftp/users/sgtatham/putty-website-mirror/ /tmp/putty\n      name: putty\n      rlimit: 300M\n      \u003c\u003c: *common_interval # interval: 3600 will be inserted here\n    - type: external\n      name: ubuntu\n      proxy_to: http://ftp.sjtu.edu.cn/ubuntu/\n      \u003c\u003c: [*common_interval, *common_retry] # use array for importing multiple anchors\n# You can add more repos here, different repos may have different worker types,\n# refer to Worker Types section for detailed explanation\n```\n\n## Development\n\nContributors should push to their own branch. Reviewed code will be merged to `master` branch.\n\nCurrently this project assumes Go \u003e= 1.23.\n\n1. set your `GOPATH` to a directory: `export GOPATH=/home/go`. Set `$GOPATH/bin` to your `$PATH`: `export PATH=$PATH:$GOPATH/bin`\n2. `go get github.com/sjtug/lug`\n3. Install dep by `curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh`\n3. `cd $GOPATH/src/github.com/sjtug/lug \u0026\u0026 dep ensure`\n4. Modify code, then use `go build .` to build binary, or test with `go test $(go list ./... | grep -v /vendor/)`\n5. Run `scripts/gen_license.sh` before committing your code\n\nNOTICE: Please attach test files when contributing to your module\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjtug%2Flug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjtug%2Flug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjtug%2Flug/lists"}