kopia lustrzana https://github.com/jupyterhub/repo2docker
use micromamba 0.12.2
rodzic
f9388c3200
commit
6cc7567f2e
|
@ -98,7 +98,7 @@ class CondaBuildPack(BaseImage):
|
|||
|
||||
All scripts here should be independent of contents of the repository.
|
||||
|
||||
This sets up through `install-miniforge.bash` (found in this directory):
|
||||
This sets up through `install-micromamba.bash` (found in this directory):
|
||||
|
||||
- a directory for the conda environment and its ownership by the
|
||||
notebook user
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# This downloads and installs a pinned version of miniforge
|
||||
# This downloads and installs a pinned version of micromamba
|
||||
# and sets up the base environment
|
||||
set -ex
|
||||
|
||||
|
@ -15,13 +15,14 @@ unset HOME
|
|||
mkdir -p ${CONDA_DIR}
|
||||
|
||||
time wget -qO- ${URL} | tar -xvj bin/micromamba
|
||||
|
||||
export MAMBA_ROOT_PREFIX=${CONDA_DIR}
|
||||
export MAMBA_EXE="/tmp/bin/micromamba"
|
||||
|
||||
eval "$(./bin/micromamba shell hook -p ${CONDA_DIR} -s posix)"
|
||||
./bin/micromamba shell init -s bash -p ${CONDA_DIR}
|
||||
# source ~/.bashrc
|
||||
|
||||
micromamba activate
|
||||
# micromamba install conda -n base -c conda-forge
|
||||
|
||||
export PATH="${PWD}/bin:$PATH"
|
||||
|
||||
|
@ -71,7 +72,7 @@ fi
|
|||
# Clean things out!
|
||||
time micromamba clean --all -y
|
||||
|
||||
# Remove the pip cache created as part of installing miniforge
|
||||
# Remove the pip cache created as part of installing micromamba
|
||||
rm -rf /root/.cache
|
||||
|
||||
chown -R $NB_USER:$NB_USER ${CONDA_DIR}
|
|
@ -5,6 +5,6 @@ from subprocess import check_output
|
|||
assert sys.version_info[:2] == (3, 5), sys.version
|
||||
|
||||
out = check_output(["/tmp/bin/micromamba", "--version"]).decode("utf8").strip()
|
||||
assert out == "0.12.1", out
|
||||
assert out == "0.12.2", out
|
||||
|
||||
import numpy
|
||||
|
|
Ładowanie…
Reference in New Issue