Philipp Hoffmann

notes to myself

gitlab-runner fails to run image

Gitlab-runner gave me the following error trying to run a job from one of my own images:

...
Skipping Git submodules setup
[: 1: [: Syntax error: end of file unexpected
[: 1: [: Syntax error: end of file unexpected
ERROR: Job failed: exit code 2

Turns out, the issue was in docker-entrypoint.sh, where

exec $@

needs to be

exec "$@"

Not sure why exactly, but that fixed the issue.