Docs feedback: Services - Debug a job locally script does not work

Services - Debug a job locally script does not work

The documentation here describes how to debug a service locally. However, the provided build script fails.

$ docker run --name build -i  ruby:2.6 /bin/bash < build_script
Cloning into '/builds/gitlab-org/gitlab-runner'...
make: mage: No such file or directory
make: mage: No such file or directory
make: mage: No such file or directory
make: go: No such file or directory
make: *** [Makefile:327: gox] Error 127
go install github.com/mitchellh/gox@9f712387e2d2c810d99040228f89ae5bb5dd21e5
$ cat build_script 
git clone https://gitlab.com/gitlab-org/gitlab-runner.git /builds/gitlab-org/gitlab-runner
cd /builds/gitlab-org/gitlab-runner
make

Environment details:

$ docker --version
Docker version 24.0.7, build afdd53b
$ uname -r
6.5.0-10-generic
$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

Other links/references

Edited Nov 09, 2023 by Pieter Jordaan
Assignee Loading
Time tracking Loading