Hi everybody,
I’m trying to build a Nextflow workflow using podman containers. The docs state:
Bash must be available at
/bin/bashand must be the container entrypoint.
However, it seems the opposite is true: A container must not have bash specified as entrypoint. Indeed, looking at the .command.run script in the work directory, it calls whatever is inside the container with /bin/bash -ue [...]/.command.sh, therefore using a container image with bash specified as entrypoint yields the error
/bin/bash: /bin/bash: cannot execute binary file
As it tries two run the bash as binary in itself.
To confirm I tried running a single echo-command workflow in both a clean debian (bash as default shell) and a clean alpine (bash not default, but installed) container. In both cases it worked when no entrypoint was specified and failed with the aforementioned error when it was.
Is there something I’m missing or are the docs actually faulty here?
Best
Sam