| 1 | #!/bin/sh |
| 2 | |
| 3 | #docker stop test-gitlab-api-v4 |
| 4 | |
| 5 | sleep 5 |
| 6 | |
| 7 | #docker run -d --rm \ |
| 8 | # -p 80:80 \ |
| 9 | # --name test-gitlab-api-v4 \ |
| 10 | # gitlab/gitlab-ce:16.0.3-ce.0 |
| 11 | |
| 12 | echo 1. Open you browser to: http://localhost \(it may take several minutes for it to respond\) |
| 13 | echo 2. Get the root password with: sudo docker exec -it test-gitlab-api-v4 grep 'Password:' /etc/gitlab/initial_root_password |
| 14 | echo 3. Then login and goto: http://localhost/-/profile/personal_access_tokens |
| 15 | echo 4. Create a new private token \(use this token below\). |
| 16 | echo 5. Then set the following env vars: |
| 17 | echo export GITLAB_API_V4_URL=http://localhost/api/v4 |
| 18 | echo export GITLAB_API_V4_PRIVATE_TOKEN= |
| 19 | echo export GITLAB_API_V4_ROOT_PASSWORD= |
| 20 | echo 6. You should now be able to run: t/regression.t |