Skip to content
Snippets Groups Projects
Commit 7a269560 authored by Sven Marcus's avatar Sven Marcus
Browse files

Build Singularity image on GITZ Runner

parent 839d713b
1 merge request!48Adds a convergence analysis test case that runs on Phoenix
......@@ -3,6 +3,7 @@ image: irmb/virtualfluids-python-deps:latest
stages:
- build
- build_python
- container_upload
- test
- benchmark
- analyze
......@@ -141,26 +142,6 @@ msvc_16:
paths:
- $CI_PROJECT_DIR/$env:BUILD_FOLDER/
###############################################################################
build_singularity_image:
stage: build
tags:
- linux
- privileged
rules:
- if: $CI_COMMIT_TAG
artifacts:
expire_in: 1 hrs
paths:
- Containers/VirtualFluidsMPICH.sif
script:
- singularity build Containers/VirtualFluidsMPICH.sif Containers/VirtualFluidsMPICH.def
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" Containers/VirtualFluidsMPICH.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_TAG"
###############################################################################
## Build Python ##
......@@ -189,6 +170,25 @@ gcc_9_python:
script:
- python3 setup.py bdist_wheel
###############################################################################
## Container Upload ##
###############################################################################
build_singularity_image:
stage: container_upload
needs:
- gcc_9_python
tags:
- docker-alpine
rules:
- if: $CI_COMMIT_TAG
script:
- singularity build Containers/VirtualFluidsPython.sif Containers/VirtualFluidsPython.def
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" Containers/VirtualFluidsPython.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_TAG"
###############################################################################
## Tests ##
###############################################################################
......
BootStrap: docker
From: ubuntu:20.04
%files
Python Python
dist dist
%post
export DEBIAN_FRONTEND=noninteractive
apt-get update && \
apt-get install -y \
build-essential \
cmake=3.16.3-1ubuntu1 \
python3 \
python3-dev \
python3-pip \
mpich \
libomp-dev
pip3 install setuptools wheel $(find dist/*.whl)
%environment
export PYTHONPATH=/Python
%runscript
python3 /Python/liddrivencavity/simulation.py
%appenv poiseuille
export PYTHONPATH=Python
%apprun poisueille
python3 /Python/poiseuille/poiseuille_hpc.py
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