Privide gitlab-mirror-pull as docker container
1.1K
Gitlab-mirror-pull automatically fetches and updates GitLab repositories.
Update your git repositories automatically when remote is set
/etc/init.d/gitlab-mirror-servergit clone https://github.com/ochorocho/gitlab-mirror-pull.gitbundle installconfig.example.yml to config.yml./bin/gitlab-mirror-pull -c config.yml -l INFO
gem install gitlab-mirror-pull
:warning: Make sure you run the script/server as git user. This is default for omnibus installation but may differ. In case you run the binary directly use this command sudo -u git -H gitlab-mirror-pull
see config.yml
gitlab-mirror-pull -c /path/to/config.yml
Default config location
/etc/gitlab-mirror-pull/config.yml
If you want to trigger periodically
* */1 * * * git /usr/bin/ruby /usr/local/bin/gitlab-mirror-pull
Allow webhooks on localhost in gitlab (Admin -> Settings -> Outbound requests)
and check Allow requests to the local network from hooks and services and hit save
Go to your porject -> Settings -> Integrations:
http://localhost:8088/commitEnable SSL verificationTriggerssudo /etc/init.d/gitlab-mirror-server startLogs
/var/log/gitlab-mirror-server.err/var/log/gitlab-mirror-server.logdocker run -ti --rm -v "/absolute/path/to/repositories/":/repositories -v "/absolute/path/to/config.docker.yml":/config.docker.yml ochorocho/gitlab-mirror-pull
Content type
Image
Digest
Size
61.7 MB
Last updated
almost 8 years ago
docker pull ochorocho/gitlab-mirror-pull