Skip to content

Commit

Permalink
fix setup scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Werner <[email protected]>
  • Loading branch information
jgwerner committed Aug 21, 2024
1 parent 6622fa6 commit 66ec090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 112 deletions.
18 changes: 3 additions & 15 deletions umich-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,22 @@
# https://github.com/jupyter/docker-stacks/blob/main/images/julia-notebook
ARG REGISTRY=quay.io
ARG OWNER=jupyter
ARG BASE_CONTAINER=$REGISTRY/$OWNER/minimal-notebook
FROM $BASE_CONTAINER
ARG BASE_CONTAINER=$REGISTRY/$OWNER/julia-notebook
FROM ${BASE_CONTAINER}

# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

USER root

# Julia dependencies
# install Julia packages in /opt/julia instead of ${HOME}
ENV JULIA_DEPOT_PATH=/opt/julia \
JULIA_PKGDIR=/opt/julia

# Setup Julia
RUN /opt/setup-scripts/setup_julia.py

USER ${NB_UID}

# Setup IJulia kernel & other packages
COPY --chown=${NB_UID}:${NB_GID} setup-scripts/*.* /opt/setup-scripts/.
RUN chown +rx /opt/setup-scripts/install-julia-packages.bash \
RUN chmod +rx /opt/setup-scripts/install-julia-packages.bash \
&& /opt/setup-scripts/install-julia-packages.bash

RUN pip install jupyter_kernel_gateway psycopg2-binary

WORKDIR "${HOME}"

CMD ["jupyter", "kernelgateway", "--KernelGatewayApp.ip=0.0.0.0", "--KernelGatewayApp.port=8888"]

CMD ["jupyter", "kernelgateway", "--KernelGatewayApp.ip=0.0.0.0", "--KernelGatewayApp.port=8888"]
97 changes: 0 additions & 97 deletions umich-notebook/setup-scripts/setup_julia.py

This file was deleted.

0 comments on commit 66ec090

Please sign in to comment.