Member-only story
Gitlab CICD ➫ Build docker images using Buildpacks
Having worked mostly with Bamboo, setting up Gitlab CI/CD is slightly more complex. But it’s just a one-time configuration and I am in love with it already.
I came up with a POC idea for building the docker images using buildpacks, with the runner based within the docker runtime.
This post will cover the following parts :-
➫ Setting up Gitlab runner(s) & executor(s).
➫ Creating a custom docker image for executor.
➫ Setting up project & pipeline.
Prerequisites :-
➫ Gitlab account, free one should be just perfect!
➫ A VM or a local machine with Docker installed. It is better if we have a unix/ linux system.
⚠️ Runners based on Window’s docker may require extra config/ steps.⚠️
➫ Hands on with git, docker, java, etc.
➬ Setting up a group runner
docker-compose.yml
below:-
services:
gitlab-runner:
image: gitlab/gitlab-runner
container_name: gitlab-runner…