Hi so I am trying to create a container with apptainer. The server hosts would like to prevent the creation of conda environments within a container.
However, I only have a environment file. Which would result in the creation of a new environment.
My current idea is to remove the name within the env.yml
and then install the env by:
%post
conda env update -f environment.yml
but that does not work. Because I would need to specify which environment to update.
A second option is to locally install the environment.yml
. Then create requirements.txt
which I could install like so:
%post
conda install -y --file requirements.txt
Here is my problem, that I have to mange many different channels from which I have to install the dependencies. Especially, I have to also install pip dependencies. Which I could do manually, but I would rather find a elegant way to do so.