Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasCote committed Aug 2, 2024
1 parent cf2f396 commit fa58b1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions notebooks/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ RUN apt-get update && apt-get install -y git-all
WORKDIR /home/mambauser/app

# Run git clone to get the repo contents in to /home/mambauser/app
RUN git clone https://github.com/ProjectPythia/ERA5_interactive-cookbook.git
RUN git clone https://github.com/NicholasCote/ERA5_interactive-cookbook-ncote.git

# Create a conda environment from the environment.yml file included in the repo
RUN micromamba env create -f ERA5_interactive-cookbook/notebooks/environment.yml
RUN micromamba env create -f ERA5_interactive-cookbook-ncote/notebooks/environment.yml
# Activate the environment by providing ENV_NAME as an environment variable at runtime

# Copy the notebook with the panel application to the working directory
RUN mv ERA5_interactive-cookbook/notebooks/04_dashboard.ipynb .
RUN mv ERA5_interactive-cookbook-ncote/notebooks/04_dashboard.ipynb .

# Remove the rest of the repository as no other files are required
RUN rm -r ERA5_interactive-cookbook/
RUN rm -r ERA5_interactive-cookbook-ncote/

# Make panel application port to the world outside this container
EXPOSE 5006
Expand Down
3 changes: 2 additions & 1 deletion notebooks/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ channels:
dependencies:
- xarray
- panel
- hvplot
- hvplot
- nbconvert

0 comments on commit fa58b1b

Please sign in to comment.