diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3c246c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +jupyter/jupyter +jupyter/notebooks \ No newline at end of file diff --git a/jupyter/build/build.fish b/jupyter/build/build.fish index e5b6e02..179d676 100755 --- a/jupyter/build/build.fish +++ b/jupyter/build/build.fish @@ -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 rm betalupi/jupyter-inter-(math $img_idx) \ No newline at end of file +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" \ No newline at end of file diff --git a/jupyter/build/selenium.Dockerfile b/jupyter/build/selenium.Dockerfile new file mode 100644 index 0000000..057d129 --- /dev/null +++ b/jupyter/build/selenium.Dockerfile @@ -0,0 +1,27 @@ +ARG BASE_CONTAINER=betalupi/jupyter-base +FROM $BASE_CONTAINER +LABEL maintainer="Mark " + +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/ \ No newline at end of file