-
Notifications
You must be signed in to change notification settings - Fork 97
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
Reintroduce activate argument for --miniconda #537
Comments
As already mentioned, this issue can be solved by following the solution from here: In a nutshell, the solution is to bake a list of environmental variables into the Dockerfile to imitate the behavior of |
Closed
This issue is stale because it has been open for 30 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As already mentioned here, in former versions of neurodocker one was able to activate an environment of choice. I propose to reintroduce this functionality. Though in theory, one could also install everything into the base environment, this doesn't work in our case (conda is not able to resolve complex dependencies, when there are already packages with specific versions installed in the base environment) and is also generally not considered good practice ("leave the base environment untouched").
On top of generally re-introducing this functionality, I would also pitch for a way that is not dependent on any files found in HOME directories. The reason for that is, that in my instiution (and certainly other research facilites)
I already found a way to do this based on this comment (also see the conda docs) and it should be possible to integrate this into neurodocker. The minimum thing to do is to define:
ENV PATH="/opt/miniconda-latest/envs/env_name/bin:$PATH"
where you replaceenv_name
with the environment of your choice (should be possible to work with formatted strings here). Conda init also does a lot of cosmetics (e.g.putting (env_name)
at the front but this should also be possible to hardcode.The text was updated successfully, but these errors were encountered: