diff options
| author | Max Wittig <max.wittig95@gmail.com> | 2019-06-10 19:09:18 +0200 |
|---|---|---|
| committer | Max Wittig <max.wittig95@gmail.com> | 2019-06-10 20:09:41 +0200 |
| commit | 7040b4c207975f9a4ad3ea7d14d4c8c57e901188 (patch) | |
| tree | e07dec83fa696eab71fbe3941327e05feb2f960d /tools/docker-entrypoint | |
| parent | e45a6e2618db30834f732c5a7bc9f1c038c45c31 (diff) | |
| download | gitlab-chore/fix-ci-travis.tar.gz | |
chore(ci): fix travis testschore/fix-ci-travis
Diffstat (limited to 'tools/docker-entrypoint')
| -rwxr-xr-x | tools/docker-entrypoint | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/docker-entrypoint b/tools/docker-entrypoint new file mode 100755 index 0000000..d291220 --- /dev/null +++ b/tools/docker-entrypoint @@ -0,0 +1,18 @@ +#!/bin/bash + +## Running the init logic for gitlab. See PR# for splitting this wrapper file into two pieces +/bin/bash init/init + +echo Sleep for 30 seconds to ensure all services are running +sleep 30 + +echo Initalize test token and user +PERSONAL_ACCESS_TOKEN="$(gitlab-rails r /init/test.rb)" +GITLAB_URL="http://localhost:$EXTERNAL_PORT" + +echo "export PERSONAL_ACCESS_TOKEN=$PERSONAL_ACCESS_TOKEN" >> ~/.profile +echo "export GITLAB_URL=$GITLAB_URL" >> ~/.profile + +echo Tail and wait +gitlab-ctl tail& +wait |
