Sign inSign up

purposely/github-release-mirror

By purposely

•Updated 11 months ago

Image
0

2.5K

purposely/github-release-mirror repository overview

⁠Github-Release-Mirror

Choose whether to mirror only the latest version of the repository or all versions.

⁠Usage

  1. Create crontab
0 3 * * * /opt/mirror.sh sass/node-sass all
0 4 * * * /opt/mirror.sh electron/electron latest

then put it in ${DATA_PATH}/github-release-mirror

  1. Docker compose
services:
  github-release-mirror:
    image: purposely/github-release-mirror:latest
    volumes:
      - ${GITHUB_RELEASE_MIRROR_PATH}:/mirror
      - ${DATA_PATH}/github-release-mirror:/etc/cron.d/mirror-jobs:ro
    environment:
      ALL_PROXY: ${PROXY_HTTP_Q}
      TZ: ${TIME_ZONE}
    ports:
      - 80:80
  1. (Optional) Environments
  • time zone: TZ=${YOUR_TIME_ZONE}
  • proxy: ALL_PROXY=${YOUR_PROXY}

Tag summary

Content type

Image

Digest

sha256:626d3160f…

Size

58.3 MB

Last updated

11 months ago

docker pull purposely/github-release-mirror