question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update the singularity command line parameter for apptainer

See original GitHub issue

Placeholder issue for future work after Singularity has moved to under the Linux Foundation as “Apptainer”.

From @mr-c on Element about renaming --singularity to --apptainer in cwltool:

Sure, but we’ll likely keep the other name as a fallback. Or better yet, auto detect which engine is installed. I believe there is an issue for that already

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
salexan2001commented, Apr 20, 2022

Sure, I will have a look at the contribution guidelines and prepare a pull request. I have no experience with podman so far.

1reaction
salexan2001commented, Apr 19, 2022

However, there seems to be an error regarding the “version check”, as apptainer and singularity seem to have different versioning conventions. I am currently receiving the following error with apptainer:

ERROR Workflow error, try again with --debug for more information:
Singularity is not available for this tool, try --no-container to disable Singularity, or install a user space Docker replacement like uDocker with --user-space-docker-cmd.: invalid literal for int() with base 10: 'a'

… while it works perfectly with the syslabs-singularity (and also with standard docker in this case).

(I started the job using $ cwltool --singularity 1st-tool.yml echo-job.yml)

So probably either the two command lines (–singularity / --apptainer) need a specific version check or the versioning scheme needs to be auto-detected depending on whether the one or the other singularity distribution is used.

I have attached the (slightly shortened) full output with --debug option:

bug_report_cwltool.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick Start — Singularity User Guide 3.8 documentation
Singularity's command line interface allows you to build and interact with containers transparently. You can run programs inside a container as if they...
Read more >
singularity exec — Singularity User Guide 3.8 documentation
Run a command within a container ... singularity exec /tmp/debian.sif python $ sudo singularity exec --writable /tmp/debian.sif apt-get update $ singularity ...
Read more >
The Singularity Config File - Apptainer
This feature is used via multiple command line arguments (e.g. --bind , --scratch , and --home ) so disabling user bind control will...
Read more >
Quick Start — Singularity container 3.4 documentation
Singularity's command line interface allows you to build and interact with containers transparently. You can run programs inside a container as if they...
Read more >
apptainer shell — Apptainer User Guide main documentation
shub://* A container hosted on Singularity Hub. ... <fuse command> is the path to the FUSE executable, plus options for the mount.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found