You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case:
I want a service to run periodically and scan my Gitlab instance for any changes to repositories and update a local copy of all repos. I would like to set up a docker-compose.yml file and start it and forget about it. (I realize this isn't the most efficient use of bandwidth, but at-least I'm using self-hosted servers.)
I'm thinking something like this docker-compose.yml:
version: '3.6'# note: create a text file named .env in the same dir as this file with contents:#GHORG_GITLAB_TOKEN=xxxxxservices:
repos-ro-mirror:
image: ghcr.io/gabrie30/ghorg:v1.9.10restart: unless-stoppedenvironment:
- GHORG_GITLAB_TOKENvolumes:
- ./config:/config
- ./repos:/data# command to executecommand: "/bin/sh -c 'while :; do ghorg reclone; sleep 10m & wait $${!}; done'"entrypoint: ""
and my list of things to clone in reclone.yaml:
# Example for gitlab; update with your gitlab cloud tokenmy-gitlab:
cmd: "ghorg clone mygroup --scm=gitlab --fetch-all --base-url=https://gitlab.myserver.com"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My use case:
I want a service to run periodically and scan my Gitlab instance for any changes to repositories and update a local copy of all repos. I would like to set up a docker-compose.yml file and start it and forget about it. (I realize this isn't the most efficient use of bandwidth, but at-least I'm using self-hosted servers.)
I'm thinking something like this docker-compose.yml:
and my list of things to clone in reclone.yaml:
Am I going about this the best way? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions