Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve compatibility w. singularity sandbox mode #225

Open
espenhgn opened this issue Feb 7, 2024 · 2 comments
Open

improve compatibility w. singularity sandbox mode #225

espenhgn opened this issue Feb 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@espenhgn
Copy link
Contributor

espenhgn commented Feb 7, 2024

Describe the bug
Many tests fail in "singularity sandbox" mode:
gwas_pytest_errors.txt

To Reproduce
Steps to reproduce the behavior:

  1. micromamba create -n containers python=3.11 pytest singularity -Y && micromamba activate containers
  2. py.test -v tests

Setup (please complete the following information - if applicable):

  • OS: Ubuntu 22.04.3 LTS
  • singularity version 3.8.6
  • Container file and version: gwas.sif (latest)
@espenhgn espenhgn added the bug Something isn't working label Feb 7, 2024
Copy link

github-actions bot commented May 8, 2024

This issue appears to be stale due to non-activity

@espenhgn
Copy link
Contributor Author

espenhgn commented Aug 8, 2024

Furthermore, it could be beneficial to spawn instances of the containers in the background and invoke binaries in the foreground when needed, as converting to temporary sandboxes for each call is infeasibly slow; similar to:

$ apptainer instance start -B $TMPDIR singularity/gwas.sif gwas
INFO:    Environment variable SINGULARITY_TMPDIR is set, but APPTAINER_TMPDIR is preferred
INFO:    squashfuse not found, will not be able to mount SIF or other squashfs files
INFO:    fuse2fs not found, will not be able to mount EXT3 filesystems
INFO:    gocryptfs not found, will not be able to use gocryptfs
INFO:    Converting SIF file to temporary sandbox...
INFO:    instance started successfully

$ apptainer instance list
INSTANCE NAME    PID        IP    IMAGE
gwas             3059372          /mnt/scratch/tmp/rootfs-3445735741/root

$ apptainer exec instance://gwas plink --version
INFO:    Environment variable SINGULARITY_TMPDIR is set, but APPTAINER_TMPDIR is preferred
PLINK v1.90b7.2 64-bit (11 Dec 2023)

$ apptainer instance stop gwas
INFO:    Stopping gwas instance of /mnt/scratch/tmp/rootfs-3445735741/root (PID=3059372)

@espenhgn espenhgn self-assigned this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant