. ./start.sh
It will download Docker images, build the Jenkins image and start them all in a daemon mode in a virtual network in Docker.
- Set up Jenkins by navigationg to Jenkins UI:
you can view the jenkins admin password from logs by running
docker-compose logs jenkins
- Proceed with the wizard and install Jenkins plugins; create first admin user.
In Jenkins you can reference Gitlab server by
gitlab
hostname instead oflocalhost
.
- Browse to the GitLab UI here (it takes a little while for Gitlab UI to get started after container is up and running):
- View the GitLab Grafana Metrics UI here:
HealthCheck Endpoints (get token from the gitlab http://localhost:8929/admin/health_check):
- http://localhost:8929/-/readiness?token={TOKEN}
- http://localhost:8929/-/liveness?token={TOKEN}
- http://localhost:8929/-/metrics?token={TOKEN}
- Register the GitLab Shared Runner (run only once).
docker exec -it -e REGISTRATION_TOKEN={TOKEN} gitlab-runner register
docker-compose restart gitlab-runner
Containers have resource limits conifuged in the
docker-compose.yml
file.