diff --git a/Dockerfile b/Dockerfile index fc9ae9d..c65bcbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -189,6 +189,12 @@ RUN julia -e 'import Pkg; Pkg.update()' && \ USER root +# Install Docker +RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +RUN apt update +RUN apt install -y docker-ce + # move kernelspec out of home RUN mv $HOME/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \ chmod -R go+rx $CONDA_DIR/share/jupyter && \ diff --git a/poststart.sh b/poststart.sh index 15e5851..37c56a5 100755 --- a/poststart.sh +++ b/poststart.sh @@ -14,11 +14,16 @@ fi Rscript -e 'dir.create(path = Sys.getenv("R_LIBS_USER"), showWarnings = FALSE, recursive = TRUE)' Rscript -e '.libPaths( c( Sys.getenv("R_LIBS_USER"), .libPaths() ) )' +# create matching folders to mount the farm sudo mkdir -p /nfs sudo mkdir -p /lustre sudo mkdir -p /warehouse +# copy mount-farm so its avaiable on the user's path sudo chmod +x /mount-farm.sh sudo cp /mount-farm.sh /usr/local/bin/mount-farm +# start docker service +sudo service docker start + export USER=jovyan