Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/anaconda:1.3.10-3

# Copy environment.yml (if found) to a temp location so we update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
USER vscode
COPY environment.yml /home/vscode
Comment thread
douglowe marked this conversation as resolved.
RUN <<EOF_USERSETUPINSTALL
conda config --add channels conda-forge
conda config --remove channels defaults
conda init bash
Comment thread
douglowe marked this conversation as resolved.
conda env create --file /home/vscode/environment.yml
Comment thread
douglowe marked this conversation as resolved.
rm /home/vscode/environment.yml
EOF_USERSETUPINSTALL
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/anaconda
{
"name": "Anaconda (Python 3)",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "python --version",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
3 changes: 3 additions & 0 deletions .devcontainer/noop.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This file copied into the container along with environment.yml* from the parent
folder. This file is included to prevents the Dockerfile COPY instruction from
failing if no environment.yml is found.
Comment thread
douglowe marked this conversation as resolved.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ tests
!tests/*.py
__pycache__/*
RIP/*.sif

.devcontainer/devcontainer-lock.json
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ dependencies:
# - pynio==1.5 #Reccomended by wrf-python, not needed for Plotting a Two-dimensional Field script
# - pyngl==1.6 #Reccomended by wrf-python, not needed for Plotting a Two-dimensional Field script
# - basemap==1.3 #Reccomended by wrf-python, not needed for Plotting a Two-dimensional Field script
- wrf-python==1.3.4
- wrf-python==1.3.4.1
- imageio==2.19.3
- imageio-ffmpeg==0.4.7
- metpy==1.5.1
- setuptools==79.0.1
Loading