Skip to content

Commit

Permalink
Updates allow auto-reload of jupyter on file changes (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattprintz authored Jan 24, 2024
1 parent 092530c commit 864a1c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ RUN git clone https://github.com/indralab/mira.git /home/jupyter/mira && \

# Install project requirements
COPY --chown=1000:1000 pyproject.toml README.md hatch_build.py /home/jupyter/askem_beaker/
RUN mkdir -p /home/jupyter/askem_beaker/src/askem_beaker && touch /home/jupyter/askem_beaker/src/askem_beaker/__init__.py
RUN pip install --no-cache-dir --upgrade -e /home/jupyter/askem_beaker

COPY --chown=1000:1000 . /home/jupyter/askem_beaker/

# Installs the askem specific subkernels
Expand All @@ -46,3 +49,4 @@ WORKDIR /home/jupyter
RUN /usr/local/julia/bin/julia -J /home/jupyter/.julia/environments/askem/ASKEM-Sysimage.so -e 'using IJulia; IJulia.installkernel("julia"; julia=`/usr/local/julia/bin/julia -J /home/jupyter/.julia/environments/askem/ASKEM-Sysimage.so --threads=4`)'

CMD ["python", "-m", "beaker_kernel.server.main", "--ip", "0.0.0.0"]

4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ services:
- JUPYTER_TOKEN=89f73481102c46c0bc13b2998f9a4fce
env_file:
- .env
command: ["python", "-m", "beaker_kernel.server.dev", "--ip", "0.0.0.0"]
volumes:
- ./src/askem_beaker:/home/jupyter/askem_beaker
command: ["python", "-m", "beaker_kernel.server.dev", "watch"]

data-service:
image: ghcr.io/darpa-askem/data-service:latest
Expand Down

0 comments on commit 864a1c0

Please sign in to comment.