Docs update required: Build inside images with custom entrypoint fail
I'm might be wrong, but it seems that something wrong with !127 (merged). It's doesn't work well with images where custom entrypoint script is used. To demonstrate the issue I created a test project.
When I'm using official CentOS image everything is fine. But when I'm using custom image it fails with such message:
/entrypoint.sh: eval: line 4: syntax error near unexpected token `then'
/entrypoint.sh: eval: line 4: `sh -c if [ -x /usr/local/bin/bash ]; then'
My Dockerfile
is:
FROM centos:7
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh
:
#!/bin/sh
echo "--- TEST ---"
eval "$@"
Inside .gitlab-ci.yml
I'm just checking current directory with pwd
command
Edited by 🤖 GitLab Bot 🤖