kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #666 from betatim/clean-up-during-conda-install
[MRG] Remove the conda package cache as we can't hardlink to itpull/676/head
commit
fb5c4efb73
|
@ -182,9 +182,8 @@ class CondaBuildPack(BaseImage):
|
||||||
'${NB_USER}',
|
'${NB_USER}',
|
||||||
r"""
|
r"""
|
||||||
conda env update -p {0} -f "{1}" && \
|
conda env update -p {0} -f "{1}" && \
|
||||||
conda clean -tipsy && \
|
conda clean --all -f -y && \
|
||||||
conda list -p {0} && \
|
conda list -p {0}
|
||||||
rm -rf /srv/conda/pkgs
|
|
||||||
""".format(env_prefix, environment_yml)
|
""".format(env_prefix, environment_yml)
|
||||||
))
|
))
|
||||||
return super().get_assemble_scripts() + assembly_scripts
|
return super().get_assemble_scripts() + assembly_scripts
|
||||||
|
|
|
@ -68,11 +68,14 @@ if [[ -f /tmp/kernel-environment.yml ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean things out!
|
# Clean things out!
|
||||||
conda clean -tipsy
|
conda clean --all -f -y
|
||||||
|
|
||||||
# Remove the big installer so we don't increase docker image size too much
|
# Remove the big installer so we don't increase docker image size too much
|
||||||
rm ${INSTALLER_PATH}
|
rm ${INSTALLER_PATH}
|
||||||
|
|
||||||
|
# Remove the pip cache created as part of installing miniconda
|
||||||
|
rm -rf /root/.cache
|
||||||
|
|
||||||
chown -R $NB_USER:$NB_USER ${CONDA_DIR}
|
chown -R $NB_USER:$NB_USER ${CONDA_DIR}
|
||||||
|
|
||||||
conda list -n root
|
conda list -n root
|
||||||
|
|
Ładowanie…
Reference in New Issue