Deploy a containerized stack for this workshop
Obviously GitLab
Visual Studio Code for editing
Portainer to manage Docker
traefik routes requests to containers
Use SSH to login to you VM
ssh seat@seatN.inmylab.de
Clone repository with slides and demos
git clone https://github.com/nicholasdille/container-slides
Deploy stack
cd container-slides/160_gitlab_ci/000_rollout
docker compose \
--project-name gitlab \
up -d
Go to https://seatN.inmylab.de where seatN matches your subdomain
Wait for GitLab to be available (status is running (healthy)
):
docker compose ps
Retrieve the initial root password for GitLab:
docker ps --filter "label=com.docker.compose.service=gitlab" --quiet \
| xargs -I{} \
docker exec {} \
cat /etc/gitlab/initial_root_password \
| grep ^Password \
| cut -d' ' -f2
Login to GitLab
Connect GitLab runner
Make the registration token available:
echo "export REGISTRATION_TOKEN=<REGISTRATION_TOKEN>" \
>/etc/profile.d/gitlab_registration_token.sh
source /etc/profile.d/gitlab_registration_token.sh
Restart runner:
docker compose \
--project-name gitlab \
up -d
Needed to executed CI jobs
Uses the docker
executor
Isolates jobs in dedicated containers
Containers are based on alpine
by default
Use the web-based Visual Studio Code
Open a terminal and configure git:
git config --global user.email "seatN@inmylab.de"
git config --global user.name "seatN"