Skip to content
Snippets Groups Projects
Commit 7d3777e5 authored by Lars Bilke's avatar Lars Bilke
Browse files

Build registry.opengeosys.org/ogs/ogs/ogs-petsc-jupyter image.

parent 4f1abaed
No related branches found
No related tags found
No related merge requests found
...@@ -9,10 +9,12 @@ build jupyter: ...@@ -9,10 +9,12 @@ build jupyter:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- > - >
if [[ "$CI_COMMIT_BRANCH" == "master" ]] ; then if [[ "$CI_COMMIT_BRANCH" == "master" ]] ; then
export DOCKER_TAG_JUPYTER="$CI_REGISTRY/ogs/$CI_PROJECT_NAME/ogs-serial-jupyter:latest" export DOCKER_TAG_JUPYTER="$CI_REGISTRY/ogs/$CI_PROJECT_NAME/ogs-serial-jupyter"
export DOCKER_TAG_JUPYTER_PETSC="$CI_REGISTRY/ogs/$CI_PROJECT_NAME/ogs-petsc-jupyter"
export ON_MASTER_ARGS="--upload -C" export ON_MASTER_ARGS="--upload -C"
else else
export DOCKER_TAG_JUPYTER="ci-$CI_PROJECT_NAME-$CI_COMMIT_BRANCH-jupyter" export DOCKER_TAG_JUPYTER="ci-$CI_PROJECT_NAME-$CI_COMMIT_BRANCH-serial-jupyter"
export DOCKER_TAG_JUPYTER_PETSC="ci-$CI_PROJECT_NAME-$CI_COMMIT_BRANCH-petsc-jupyter"
fi fi
# Jupyter container # Jupyter container
- > - >
...@@ -24,6 +26,16 @@ build jupyter: ...@@ -24,6 +26,16 @@ build jupyter:
--runtime_base_image 'jupyter/base-notebook' --runtime_base_image 'jupyter/base-notebook'
--tag $DOCKER_TAG_JUPYTER --tag $DOCKER_TAG_JUPYTER
$ON_MASTER_ARGS $ON_MASTER_ARGS
- >
poetry run ogscm compiler.py mpi.py ogs.py ogs_jupyter.py -B -R --ogs ../..
--build_args ' --progress=plain'
--cvode --ccache --mfront
--cpu-target $CPU_TARGET
--cmake_args ' -DOGS_CPU_ARCHITECTURE=OFF -DOGS_BUILD_TESTING=OFF'
--runtime_base_image 'jupyter/base-notebook'
--mpi_no_entrypoint
--tag $DOCKER_TAG_JUPYTER_PETSC
$ON_MASTER_ARGS
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
# execute notebooks in container # execute notebooks in container
- > - >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment