Unable to Build GitLab Runners Docker Images Locally
Summary
Unable to build GitLab Runners docker images locally following the contribution guide here: https://docs.gitlab.com/16.8/runner/development/
The error I am facing:
mage package:deps package:prepare
make package-deb-arch ARCH=amd64 PACKAGE_ARCH=amd64
make[1]: Entering directory '/home/ubuntu/gitlab-runner'
make[1]: *** No rule to make target 'package-deb-arch'. Stop.
make[1]: Leaving directory '/home/ubuntu/gitlab-runner'
make: *** [Makefile.build.mk:72: runner-and-helper-deb-host] Error 2
The rule 'package-deb-arch' doesn't exist in the make files. Am I missing something here? Kindly let me know.
Steps to reproduce
Following the guide here: https://docs.gitlab.com/16.8/runner/development/
I cloned the gitlab-runners project and did git checkout tags/v16.8.0
. Then I followed the rest of the steps for dependencies and finally ran make runner-and-helper-docker-host
.
Actual behavior
The build is unsuccessful due to a missing rule in the make files.
Expected behavior
The docker images are built successfully.
Relevant logs and/or screenshots
The error I get:
mage package:deps package:prepare
make package-deb-arch ARCH=amd64 PACKAGE_ARCH=amd64
make[1]: Entering directory '/home/ubuntu/gitlab-runner'
make[1]: *** No rule to make target 'package-deb-arch'. Stop.
make[1]: Leaving directory '/home/ubuntu/gitlab-runner'
make: *** [Makefile.build.mk:72: runner-and-helper-deb-host] Error 2
Environment description
OS Info:
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Kernel: 5.15.0-91-generic
Docker Info:
Client: Docker Engine - Community
Version: 20.10.24
API version: 1.41
Go version: go1.19.7
Git commit: 297e128
Built: Tue Apr 4 18:21:03 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.24
API version: 1.41 (minimum version 1.12)
Go version: go1.19.7
Git commit: 5d6db84
Built: Tue Apr 4 18:18:48 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.27
GitCommit: a1496014c916f9e62104b33d1bb5bd03b0858e59
runc:
Version: 1.1.11
GitCommit: v1.1.11-0-g4bccb38
docker-init:
Version: 0.19.0
GitCommit: de40ad0
K3s Info:
Client Version: v1.28.5+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.5+k3s1
Possible fixes
I wasn't able to find any fix or work around yet.
Edited by Subhashis Suara