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

Container Environment problem #25

Closed
ShaynaMallett opened this issue Jul 12, 2023 · 2 comments
Closed

Container Environment problem #25

ShaynaMallett opened this issue Jul 12, 2023 · 2 comments

Comments

@ShaynaMallett
Copy link

ShaynaMallett commented Jul 12, 2023

Hello,

We are trying to make the container work on our slurm based HPCC. We don't have docker available to us on the server and images before allowing them to be used but .oci isn't accepted. They asked for a tar.gz version of the image to convert to a sif before we could use it.

I installed docker locally, loaded the oci following the commands on git:
docker load -i absplice.oci docker run -it --name absplice_container localhost/absplice:latest /bin/bash
Then saved to a tar.gz
docker save localhost/absplice:latest | gzip > absplice_latest.tar.gz)
The IT team created a sif for us using this and gave us the following command to load it.
singularity shell -B /n /n/app/singularity/containers/absplice.sif

However, I run into an error trying to load the conda environment and conda init bash has no effect. Is this a problem with the system that we have to run it, the process of converting to tar.gz, or the image itself? And are there any recommendations for how to get around this problem?

`[user@compute-node ~]$ singularity shell -B /n /path/to/absplice.sif
Apptainer> conda activate absplice_dock

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

$ conda init <SHELL_NAME>

Currently supported shells are:

  • bash
  • fish
  • tcsh
  • xonsh
  • zsh
  • powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.`

Thank you so much for your help!!!
Shayna

@neverov-am
Copy link
Collaborator

neverov-am commented Jul 28, 2023

Dear @ShaynaMallett ,

Thank you for your question.

We are currently working on the AbSplice image for Singularity. The current version of the image allows you to run AbSplice with a full functionality. Here is the link to download it (you can use wget): https://zenodo.org/record/8192566/files/absplice.sif. You can use source activate absplice_dock to activate the environment inside the container.

However, we are still working on the implementation of the fast look up interface for SpliceAI (spliceai-rocksdb) inside the container, which improves the computation time. We will let you know when the new version of the image is available.

@ShaynaMallett
Copy link
Author

Thank you so much for the update and the sif!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants