Last active
March 2, 2024 16:36
-
-
Save thimslugga/4ae3ae471dc2878280c0ecf7d8617f29 to your computer and use it in GitHub Desktop.
Setup conda, mamba and micromamba
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:stable-slim | |
| SHELL ["/bin/bash", "-c"] | |
| ENV BASH_ENV ~/.bashrc | |
| RUN apt-get update && \ | |
| apt-get install -y ca-certificates wget bash bzip2 && \ | |
| wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba --strip-components=1 && \ | |
| ./micromamba shell init -s bash -p ~/micromamba && \ | |
| apt-get clean autoremove --yes && \ | |
| rm -rf /var/lib/{apt,dpkg,cache,log} | |
| RUN micromamba activate && \ | |
| micromamba install -y -n base python=3.8.6 pip -c conda-forge && \ | |
| rm /root/micromamba/lib/*.a && \ | |
| rm -rf /root/micromamba/pkgs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html | |
| : ' | |
| if [ -z $MAMBA_EXE ]; then | |
| echo "MAMBA_EXE is unset. Install MAMBA first!" | |
| exit | |
| fi | |
| ' | |
| #wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba --strip-components=1 | |
| curl -sSfL 'https://micromamba.snakepit.net/api/micromamba/osx-64/latest' -O | tar -xvj bin/micromamba --strip-components=1 | |
| ./micromamba shell init -s bash -p ~/micromamba | |
| source ~/.bashrc | |
| #micromamba activate | |
| #micromamba install python=3.8 -c conda-forge | |
| #micromamba install python=3.8 jupyter -c conda-forge | |
| # micromamba create -p /some/new/prefix xtensor -c conda-forge | |
| #micromamba self-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment