smoltis / gitlab-jenkins-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use:

. ./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.

After containers are built and started:

  1. Set up Jenkins by navigationg to Jenkins UI:

you can view the jenkins admin password from logs by running

docker-compose logs jenkins
  1. Proceed with the wizard and install Jenkins plugins; create first admin user.
Note:

In Jenkins you can reference Gitlab server by gitlab hostname instead of localhost.

  1. Browse to the GitLab UI here (it takes a little while for Gitlab UI to get started after container is up and running):
  1. View the GitLab Grafana Metrics UI here:

HealthCheck Endpoints (get token from the gitlab http://localhost:8929/admin/health_check):

  1. Register the GitLab Shared Runner (run only once).
docker exec -it -e REGISTRATION_TOKEN={TOKEN} gitlab-runner register
docker-compose restart gitlab-runner
Note:

Containers have resource limits conifuged in the docker-compose.yml file.

About


Languages

Language:Shell 62.6%Language:Dockerfile 37.4%