ghorg/scripts/local-gitlab
2024-09-22 15:49:21 -07:00
..
get_credentials.sh Add gitlab integration tests (#434) 2024-07-09 18:07:00 -07:00
integration-tests.sh Add/ghorg prune untouched (#459) 2024-09-22 15:49:21 -07:00
README.md update gitlab scripts 2022-08-21 10:50:27 -07:00
run-ee.sh Add gitlab integration tests (#434) 2024-07-09 18:07:00 -07:00
seed.sh Add/ghorg prune untouched (#459) 2024-09-22 15:49:21 -07:00
start-ee.sh Add gitlab integration tests (#434) 2024-07-09 18:07:00 -07:00

Local GitLab

Allows you to spin up GitLab locally with Docker to test cloning. Would eventually like to turn these into integration tests.

For enterprise GitLab, start docker then run the following command from the root of the repo

./scripts/local-gitlab/start-ee.sh [STOP_GITLAB_WHEN_FINISHED? (Default: true)] [PERSIST_GITLAB_LOCALLY? (Default: false)]

TODO: Do the same for the community edition of GitLab

If running locally you'll also need to update your /etc/hosts

echo "127.0.0.1 gitlab.example.com" >> /etc/hosts

Once github is running you can vist

http://gitlab.example.com in your browser

You can get the root token by running

docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password | awk '{print $2}'