Updated build script
parent
e62e2c2919
commit
2161ca9805
|
@ -0,0 +1,2 @@
|
|||
jupyter/jupyter
|
||||
jupyter/notebooks
|
|
@ -26,6 +26,7 @@ function build_image
|
|||
-t betalupi/jupyter-inter-(math $img_idx + 1)
|
||||
|
||||
|
||||
date "+Finished at %Y-%m-%d %T"
|
||||
if $remove_previous
|
||||
printf "Done, cleaning up.\n\n"
|
||||
sleep 1
|
||||
|
@ -37,7 +38,8 @@ function build_image
|
|||
set img_idx (math $img_idx + 1)
|
||||
end
|
||||
|
||||
|
||||
date "+Build started at %Y-%m-%d %T"
|
||||
echo ""
|
||||
|
||||
# Base image MUST be built first
|
||||
printf "Building base image...\n"
|
||||
|
@ -48,15 +50,17 @@ docker build \
|
|||
printf "Done. \n\n"
|
||||
|
||||
|
||||
|
||||
|
||||
build_image false octave
|
||||
build_image false r
|
||||
build_image false sage
|
||||
#build_image false sage (BROKEN)
|
||||
#build_image false selenium (BROKEN)
|
||||
|
||||
build_image false plugins
|
||||
build_image pymodules
|
||||
build_image false pymodules
|
||||
|
||||
# Rename final image
|
||||
docker image tag betalupi/jupyter-inter-(math $img_idx) betalupi/jupyter
|
||||
docker image tag betalupi/jupyter-inter-(math $img_idx) git.betalupi.com/mark/jupyter
|
||||
docker image rm betalupi/jupyter-inter-(math $img_idx)
|
||||
|
||||
echo ""
|
||||
date "+Build finished at %Y-%m-%d %T"
|
|
@ -0,0 +1,27 @@
|
|||
ARG BASE_CONTAINER=betalupi/jupyter-base
|
||||
FROM $BASE_CONTAINER
|
||||
LABEL maintainer="Mark <mark@betalupi.com>"
|
||||
|
||||
USER ${NB_UID}
|
||||
|
||||
RUN mamba install --yes \
|
||||
"selenium" \
|
||||
&& \
|
||||
# Cleanup
|
||||
mamba clean --all -f -y && \
|
||||
npm cache clean --force && \
|
||||
jupyter lab clean && \
|
||||
rm -rf "/home/${NB_USER}/.cache/yarn" && \
|
||||
fix-permissions "${CONDA_DIR}" && \
|
||||
fix-permissions "/home/${NB_USER}"
|
||||
|
||||
# Install google chrome
|
||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/pt/#sources.list.d/google-chrome.list'
|
||||
RUN apt-get -y update
|
||||
RUN apt-get install -y google-chrome-stable
|
||||
|
||||
# Install chromedriver
|
||||
RUN apt-get install -yqq unzip
|
||||
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
|
||||
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
|
Loading…
Reference in New Issue