Running a process in a singularity container without bash? #5410
-
Hi, I am trying to run a process in a container that does not have bash (based on alpine). This one to be precise: https://github.com/typst/typst/blob/main/Dockerfile When "shelling" into the image I can interact with it using the I have tried to add
I have seen this issue here so I am assuming there's no easy fix. My question is, what do people do in this scenario? Do they just recreate the container and install bash somehow? Is there a way to change the singularity shell even if not using all nextflow features? I don't care about execution reports atm, just need singularity and slurm. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
A nextflow job *is* a Bash script. therefore I see this hard. This problem is solved by using Conda package + Wave = on-demand containers https://www.nextflow.io/docs/latest/wave.html#build-conda-based-containers |
Beta Was this translation helpful? Give feedback.
Along the tool, nextflow uses Bash (and
ps
) also to extract runtime metrics, e.g. mem & cpu usage, etc.It's a cloud thing, but you can build the container, wither with nexflow or the
wave
cli tool, and download it locally (see also thenextflow inspect
) command at thsi regard