Creating Gitlab VM on Ubuntu 24.04

Run this script as a root:

wget -O /tmp/ && sh /tmp/
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl -y
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin -y

curl -LJO ""
apt install ./gitlab-runner_arm64.deb -y

# Then register your runner as the root user
gitlab-runner register  --url  --token YOUR_TOKEN_GENERATED_ON_GITLAB

Leave a Reply

Your email address will not be published. Required fields are marked *