User gitlab-runner is not created on the container
Summary
Dockerfile is missing the step to create the gitlab-runner user.
Steps to reproduce
Start the container and note that no user exists with UID 1001
What is the current bug behavior?
Because the gitlab-runner user doesn't exist the gitlab-runner service does not start up because of a perms issue.
What is the expected correct behavior?
The Dockerfile should contain something like:
RUN adduser -r -m -d /home/gitlab-runner gitlab-runner -u 1001 && \
id gitlab-runner && mkdir -p /home/gitlab-runner
Relevant logs and/or screenshots
bash-4.4# ps -ef
UID PID PPID C STIME TTY TIME CMD
1001 1 0 0 16:18 ? 00:00:00 tini -- /entrypoint run
1001 7 1 0 16:18 ? 00:00:00 gitlab-runner run
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Tasks
-
Bug has been identified and corrected within the container
Please read the Iron Bank Documentation for more info