From 8f63bdfa5202acb08fcc4c9f5a1734e3daee410c Mon Sep 17 00:00:00 2001 From: Your Name <you@example.com> Date: Wed, 29 Jan 2025 13:03:39 +0100 Subject: [PATCH] use registry image --- .gitlab-ci.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20dc724..a9303bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,14 @@ before_script: + - docker pull git.ia2.inaf.it:5050/hotwheels/gitlab-profile - | - docker build --build-arg CACHE_BUSTER=$(openssl rand -hex 12) --build-arg USER=${CI_REGISTRY_USER} --build-arg PASS=${CI_JOB_TOKEN} -t hwmd -f - . <<EOF - FROM debian:latest - ENV DEBIAN_FRONTEND=noninteractive - RUN apt-get update - RUN apt-get install -y bash git gcc-12 openmpi-bin libopenmpi-dev build-essential python3 pip indent - RUN rm /usr/lib/python*/EXTERNALLY-MANAGED - RUN pip install -U autopep8 Jinja2 numpy PyYAML libclang - ENV HW_FLAGS="-Wl,--no-as-needed" - ENV MPIRUN='mpirun --allow-run-as-root -n 2' - ENV OMP_NUM_THREADS=2 - RUN apt-get install -y libgsl-dev libgsl27 - RUN pip install matplotlib - RUN apt-get install -y libfftw3-dev libfftw3-mpi-dev - RUN apt-get install -y wget - RUN pip install Jinja2 numpy PyYAML libclang numba + docker build --no-cache -t hw -f - . <<EOF + FROM git.ia2.inaf.it:5050/hotwheels/gitlab-profile RUN git config --global url."https://${CI_REGISTRY_USER}:${CI_JOB_TOKEN}@www.ict.inaf.it/gitlab".insteadOf ssh://git@git.ia2.inaf.it WORKDIR /app COPY . /app EOF -install: +testing: script: - - docker run hwmd bash -c 'set -xev; . test_install_octree.bash && . test_checkup.bash && . test_pip_all.bash && . test_editable.bash && . test_bulk.bash' - - docker run hwmd bash -c 'set -xev; . test_install_pm.bash && python3 test_dmo_NFW_fixed_timestep.py' + - docker run hw bash -c 'set -xev; . test_install_octree.bash && . test_checkup.bash && . test_pip_all.bash && . test_editable.bash && . test_bulk.bash' + - docker run hw bash -c 'set -xev; . test_install_pm.bash && python3 test_dmo_NFW_fixed_timestep.py' -- GitLab