GitLab Community Edition¶
GitLab CE is a container based image.
Base Image¶
Base images can be obtained from Docker Hub.
Import Image¶
Pull the image through Sherpa:
sherpa server image pull --model gitlab_ce --version 18.7.6-ce.0
Sherpa records the version, so a lab can use it. An image already pulled with the docker CLI
is not known to Sherpa until it is scanned. The scan records each local tag of gitlab/gitlab-ce as a
version:
docker pull gitlab/gitlab-ce:18.7.6-ce.0
sherpa server image scan --kind container
Default Node Parameters¶
| Property | Value |
|---|---|
| Kind | Container |
| CPU | Not limited |
| RAM | Not limited |
| ZTP | disabled |
| Management Interface | eth0 |
| Interface Driver | macvlan |
Example Manifest¶
name = "gitlab-ce"
[[nodes]]
name = "gitlab01"
model = "gitlab_ce"
Node Access¶
GitLab exposes a web UI on ports 80 and 443.
From the server host, browse to http://<gitlab_mgmt_ip>.
ssh -L 8080:<gitlab_mgmt_ip>:80 user@sherpa-server
Then browse to http://localhost:8080.
Notes¶
- Approximate time for the system to be ready:
3 minutes - GitLab CE requires significant resources. The default allocation is 2 CPUs and 4GB RAM.
- The initial
rootpassword can be retrieved from the container after first boot.