File: setup-test-container

package info (click to toggle)
libgitlab-api-v4-perl 0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: perl: 5,960; sh: 838; python: 63; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#docker stop test-gitlab-api-v4

sleep 5

#docker run -d --rm \
#    -p 80:80 \
#    --name test-gitlab-api-v4 \
#    gitlab/gitlab-ce:16.0.3-ce.0

echo 1. Open you browser to: http://localhost \(it may take several minutes for it to respond\)
echo 2. Get the root password with: sudo docker exec -it test-gitlab-api-v4 grep 'Password:' /etc/gitlab/initial_root_password
echo 3. Then login and goto: http://localhost/-/profile/personal_access_tokens
echo 4. Create a new private token \(use this token below\).
echo 5. Then set the following env vars:
echo export GITLAB_API_V4_URL=http://localhost/api/v4
echo export GITLAB_API_V4_PRIVATE_TOKEN=
echo export GITLAB_API_V4_ROOT_PASSWORD=
echo 6. You should now be able to run: t/regression.t