Commit 09f7ed80 authored by Rafal Skolasinski's avatar Rafal Skolasinski
Browse files

set conda environment and package folder from inside startup.sh script

parent 54b96024
......@@ -107,10 +107,6 @@ RUN fix-permissions /opt/conda
# Cleanup all downloaded conda files
RUN conda clean --yes --all
# Set the conda environment folder in the home folder
RUN conda config --system --add envs_dirs /home/tinkerer/.conda/envs
RUN conda config --system --add pkgs_dirs /home/tinkerer/.conda/pkgs
# copy startup.sh script and set start-up command
COPY startup.sh /usr/local/bin
CMD ["startup.sh"]
......
......@@ -8,6 +8,10 @@
chown $NB_UID:$NB_GID /home/$NB_USER
cd /home/$NB_USER # make sure that we're in the right place
# Set the conda environment and package folder in the home folder
conda config --system --add envs_dirs /home/$NB_USER/.conda/envs
conda config --system --add pkgs_dirs /home/$NB_USER/.conda/pkgs
## launch daemonized SSHD
mkdir -p /var/run/sshd
/usr/sbin/sshd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment