Sign inSign up

dreammis/sync_gitlab

By dreammis

•Updated about 5 years ago

sync gitlab to another git server complete!

Image
0

434

dreammis/sync_gitlab repository overview

⁠What is sync_gitlab?


This container make the gitlab code auto sync to your git code server. It will sync with every commit.

顾名思义,同步代码用的。从一个git库同步到另一个git库。 它可以同步每一次提交,全量同步

⁠env file

FROM_URL=http://git_from.example.com/
FROM_TOKEN=MfdUPSewQRsBaX7NWH3i # generate from gitlab token 生成gitlab token
TO_URL=http://git_to.example.com/
TO_USER=dreammis
TO_PASS=test123
PROJECT_ORG=new_org # create the organization to your own server, you won't want to the repo to your base root. 创建要迁移的组织

⁠volume

If u want sync only once. no volume is fine if u want to sync everyday. I suggest u set a volume.

如果你只是想运行单次,那么不设置volume 是没问题的

如果你想每天都同步,我建议你设置一下volume


⁠run

docker run --rm --env-file=/volume4/mt/docker/sync_gitlab/example.env -v /volume4/mt/docker/sync_gitlab/repos:/project/repos --name sync_gitlab dreammis/sync_gitlab

Enjoy

Tag summary

Content type

Image

Digest

Size

228.1 MB

Last updated

about 5 years ago

docker pull dreammis/sync_gitlab