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

Jupyter docker: incremental build to add esgf-pyclient and xncml to fix Jenkins failure #118

Merged
merged 3 commits into from Apr 5, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions Jenkinsfile
Expand Up @@ -10,7 +10,7 @@ pipeline {
// https://jenkins.io/doc/book/pipeline/syntax/
agent {
docker {
image "pavics/workflow-tests:221130"
image "pavics/workflow-tests:221130-update230403"
label 'linux && docker'
}
}
Expand Down Expand Up @@ -136,9 +136,8 @@ Note this is another run, will double the time and no guaranty to have same erro
ansiColor('xterm')
timestamps()
timeout(time: 2, unit: 'HOURS')
// trying to keep 2 months worth of history with buffer for manual
// build trigger on failed builds or manual test after each production
// deployment or test deployment
buildDiscarder(logRotator(numToKeepStr: '200'))
// trying to keep 3 months worth of history
// assuming manual build requests are done on a separated job
buildDiscarder(logRotator(numToKeepStr: '100'))
}
}
2 changes: 1 addition & 1 deletion binder/Dockerfile
@@ -1,4 +1,4 @@
FROM pavics/workflow-tests:221130
FROM pavics/workflow-tests:221130-update230403

USER root

Expand Down
11 changes: 9 additions & 2 deletions docker/Dockerfile.testing
@@ -1,13 +1,20 @@
# For testing quickly without having to do a full rebuild.

FROM pavics/workflow-tests:220728
FROM pavics/workflow-tests:221130

# To avoid error "PROJ: proj_create_from_database: Open of /opt/conda/envs/birdy/share/proj failed"
# This simulates a real `conda activate birdy`.
ENV PROJ_DATA="/opt/conda/envs/birdy/share/proj"

USER root

# Use 'update' for existing and 'install' for new package.
# Keep same channel ordering to not revert anything.
# esgf-pyclient for pavics-sdi esgf-dap.ipynb, PR https://github.com/Ouranosinc/pavics-sdi/pull/269
# xncml for gen_catalog refactoring, PR https://github.com/Ouranosinc/pavics-vdb/pull/46
RUN umask 0000 \
&& mamba install -c conda-forge -c cdat -c bokeh -c plotly -c pyston -c pyviz/label/dev -c defaults -n birdy geopy
&& mamba install -c conda-forge -c cdat -c bokeh -c plotly -c pyston -c pyviz/label/dev -c defaults -n birdy esgf-pyclient \
&& pip install xncml
# && pip uninstall -y ravenpy \
# && mamba install -c conda-forge -c cdat -c bokeh -c plotly -c defaults -n birdy ravenpy aiohttp

Expand Down
2 changes: 1 addition & 1 deletion launchcontainer
@@ -1,7 +1,7 @@
#!/bin/sh -x

if [ -z "$DOCKER_IMAGE" ]; then
DOCKER_IMAGE="pavics/workflow-tests:221130"
DOCKER_IMAGE="pavics/workflow-tests:221130-update230403"
fi

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

if [ -z "$DOCKER_IMAGE" ]; then
DOCKER_IMAGE="pavics/workflow-tests:221130"
DOCKER_IMAGE="pavics/workflow-tests:221130-update230403"
fi

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