sylabs/singularity

Support singularity instance run

ehfd opened this issue · 2 comments

ehfd commented

Before you request a feature...

Is your feature request related to a problem? Please describe.

There are situations where your OCI-SIF runtime for a Docker container built from a Dockerfile cannot be used, such as HPC environments.

In this case, apptainer instance run is a handy way to use runscripts instead of startscripts to support ENTRYPOINT and CMD directives in Dockerfiles with detached containers running in the background.

This is not present in Singularity, not being able to use detached containers running in ENTRYPOINT and CMD, preventing interoperability.

Describe the solution you'd like

Replicate https://github.com/apptainer/apptainer/pull/1401/files / apptainer/apptainer#959

Describe alternatives you've considered

singularity instance start [...] ENTRYPOINT doesn't even work. Using tmux/screen with singularity run is very ugly.

dtrudg commented

This is fair enough. @cyanezstange - would you be able to work on cherry-picking (and adapting) the apptainer changes onto CE?

ehfd commented

Thank you!