kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #603 from minrk/home-exists
avoid touching $HOME when bootstrapping conda as rootpull/606/head
commit
c0db4b61b5
|
@ -8,6 +8,10 @@ CONDA_VERSION=4.5.11
|
|||
URL="https://repo.continuum.io/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh"
|
||||
INSTALLER_PATH=/tmp/miniconda-installer.sh
|
||||
|
||||
# make sure we don't do anything funky with user's $HOME
|
||||
# since this is run as root
|
||||
unset HOME
|
||||
|
||||
wget --quiet $URL -O ${INSTALLER_PATH}
|
||||
chmod +x ${INSTALLER_PATH}
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- numpy
|
|
@ -7,4 +7,7 @@ assert sys.executable == '/srv/conda/bin/python'
|
|||
|
||||
# Repo should be in /srv/repo
|
||||
assert os.path.exists('/srv/repo/verify')
|
||||
assert os.path.abspath(__file__) == '/srv/repo/verify'
|
||||
assert os.path.abspath(__file__) == '/srv/repo/verify'
|
||||
|
||||
# We should be able to import the package in environment.yml
|
||||
import numpy
|
Ładowanie…
Reference in New Issue