gitlab-base
GitLab Base Overview
Secure your stack with a hardened GitLab Base image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
GitLab Base, officially known as GitLab-CE (Community Edition), is part of the GitLab component library optimized for Kubernetes deployments.
Try It Out
Prerequisites
- A running Kubernetes cluster (v1.21 or higher is recommended)
- Helm v3.8 or higher for OCI support (Installation instructions)
kubectlinstalled and configured
Step 1: Start Cluster
If you have a cluster to work with, skip this step. Otherwise, start a Minikube cluster. Deployment instructions
Step 2: Add Repository to Your Local Client
Add the official Helm chart repository to your local Helm client.
helm repo add gitlab https://charts.gitlab.io/
helm repo updateStep 3: Deploy GitLab
Deploy GitLab in your Kubernetes cluster (update the placeholder with the cert-manager email address):
helm install gitlab-test gitlab/gitlab \
--set global.image.registry=reg.mini.dev \
--set global.gitlabBase.image.repository=reg.mini.dev/gitlab-base \
--set global.gitlabBase.image.tag=latest \
--set global.gitlabVersion=16.0.0 \
--set certmanager-issuer.email={EMAIL}Wait a few minutes to allow the Pods to initiate. Then check that all Pods are up and running:
kubectl -n default get poStep 4: Set GitLab URL
Setup your GitLab instance and set the URL (update the command with your Pod name):
kubectl exec -it gitlab-test-gitlab-runner-{UNIQUE_POD_IDENTIFIER} -- gitlab-runner registerFor example:
kubectl exec -it gitlab-test-gitlab-runner-6d5c967565-b8mj5 -- gitlab-runner register
Runtime platform arch=amd64 os=linux pid=131 revision=cc489270 version=18.2.1
WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Enter the GitLab instance URL (for example, https://gitlab.com/):
[https://gitlab.example.com]:Technical Considerations
The GitLab Base image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
GitLab Base built by Minimus:
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.