executing step in "docker:stable"
/usr/local/bin/docker-entrypoint.sh: exec: line 35: bash: not found
If you check the line 35 of docker-entrypoint.sh file in the docker image repo you see it's just an "exec" command.
Checking on docker.js file, I see it uses bash as shell and Alpine Linux doesn't uses bash it uses sh instead.
I've tested changing the bash references with sh on docker.js and it works both for Ubuntu and Alpine images. Ideally we should point the shell to be used dynamically. Maybe using $SHELL or $0 enviroment variables. I've tried quickly but couldn't make it work. So I'll submit a Pull Request with what I have shortly.
Used the hello-world
bitbucket-pipelines.yml
and changed the docker image todocker:stable
See more hereSo the file ends-up like this:
After running
bbrun
I get the following error:If you check the line 35 of docker-entrypoint.sh file in the docker image repo you see it's just an "exec" command.
Checking on docker.js file, I see it uses
bash
as shell and Alpine Linux doesn't usesbash
it usessh
instead.I've tested changing the
bash
references withsh
on docker.js and it works both for Ubuntu and Alpine images. Ideally we should point the shell to be used dynamically. Maybe using$SHELL
or$0
enviroment variables. I've tried quickly but couldn't make it work. So I'll submit a Pull Request with what I have shortly.