-
My use case: 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=xxxxx
services:
repos-ro-mirror:
image: ghcr.io/gabrie30/ghorg:v1.9.10
restart: unless-stopped
environment:
- GHORG_GITLAB_TOKEN
volumes:
- ./config:/config
- ./repos:/data
# command to execute
command: "/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 token
my-gitlab:
cmd: "ghorg clone mygroup --scm=gitlab --fetch-all --base-url=https://gitlab.myserver.com" Am I going about this the best way? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
gabrie30
Sep 28, 2024
Replies: 1 comment 1 reply
-
Docker compose will work fine. However, if you have git installed on your machine you could just download the ghorg binary and run it from a crontab. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added some new commands that will allow for this more easily,
ghorg reclone-server
andghorg reclone-cron
, you can learn more about them in the readme