Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New docker build for ravenpy birdy xclim #75

Merged
merged 14 commits into from
Jun 15, 2021
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
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
// https://jenkins.io/doc/book/pipeline/syntax/
agent {
docker {
image "pavics/workflow-tests:210415"
image "pavics/workflow-tests:210527.1-update20210615"
label 'linux && docker'
}
}
Expand Down
2 changes: 1 addition & 1 deletion binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM pavics/workflow-tests:210415
FROM pavics/workflow-tests:210527.1-update20210615

USER root

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN python -m ipykernel install --name birdy
# anything accidentally
# this is for debug only, all dependencies should be specified in
# environment.yml above
# RUN conda install -c zeitsperre -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy nbdime
# RUN conda install -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy nbdime

# build jupyterlab extensions installed by conda, see `jupyter labextension list`
RUN jupyter lab build
Expand Down
21 changes: 21 additions & 0 deletions docker/Dockerfile.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# For testing quickly without having to do a full rebuild.

FROM pavics/workflow-tests:210527.1

USER root

# Use 'update' for existing and 'install' for new package.
# Keep same channel ordering to not revert anything.
#RUN umask 0000 \
# && conda update -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy clisops xclim \
# && pip uninstall -y ravenpy \
# && conda install -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy ravenpy aiohttp

RUN umask 0000 \
&& conda update -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy xclim \
&& conda install -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy intake intake-esm gcsfs zarr

#RUN umask 0000 \
# && pip install https://github.com/CSHS-CWRA/RavenPy/archive/refs/heads/master.zip

USER jenkins
8 changes: 7 additions & 1 deletion docker/environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# conda env create -f environment.yml
name: birdy
channels:
- zeitsperre # for ravenpy
- conda-forge
- cdat
- bokeh
Expand Down Expand Up @@ -45,10 +44,17 @@ dependencies:
# pinning hvplot did not solve the problem with violin plot.
- hvplot
- nc-time-axis
# Pin cftime because of https://github.com/SciTools/nc-time-axis/issues/58
- cftime==1.4.1
- statsmodels # for ravenpy
# for error 'ImportError: HTTPFileSystem requires "requests" and "aiohttp" to
# be installed' with call 'fsspec.filesystem('https')'
- aiohttp
- pydantic
- intake
- intake-esm
- gcsfs
- zarr
- xclim
- ravenpy
# Universal Regridder for Geospatial Data
Expand Down
2 changes: 1 addition & 1 deletion launchcontainer
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -x

if [ -z "$DOCKER_IMAGE" ]; then
DOCKER_IMAGE="pavics/workflow-tests:210415"
DOCKER_IMAGE="pavics/workflow-tests:210527.1-update20210615"
fi

if [ -z "$CONTAINER_NAME" ]; then
Expand Down
2 changes: 1 addition & 1 deletion launchnotebook
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -z "$PORT" ]; then
fi

if [ -z "$DOCKER_IMAGE" ]; then
DOCKER_IMAGE="pavics/workflow-tests:210415"
DOCKER_IMAGE="pavics/workflow-tests:210527.1-update20210615"
fi

if [ -z "$CONTAINER_NAME" ]; then
Expand Down