An open API service indexing awesome lists of open source software.

https://github.com/bast/apptainer-venv

Fast Python virtual environments on Apptainer.
https://github.com/bast/apptainer-venv

apptainer singularity venv

Last synced: 9 months ago
JSON representation

Fast Python virtual environments on Apptainer.

Awesome Lists containing this project

README

          

# Fast Python virtual environments on [Apptainer](https://apptainer.org/)

I use it to install dependencies that may be tough to install on my NixOS environment.

How to fetch the image:
```
$ apptainer pull https://github.com/bast/apptainer-venv/releases/download/0.7.0/venv.sif
```

## Usage

- Reads: `requirements.txt`
- Creates: `venv` (folder)

Run `myscript.py` inside the virtual environment defined by `requirements.txt`:
```
$ ./venv.sif python myscript.py
```

Open python shell inside the virtual environment defined by `requirements.txt`:
```
$ ./venv.sif python
```

## Acknowledgements

- To build the image, I have used
[this wonderful guide](https://github.com/singularityhub/singularity-deploy) as starting
point and inspiration.