From 403e1168fba7e6ea2b53a382c89b8b8ca45c74b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=A9ronique=20=20LEGRAND?= <veronique.legrand@pasteur.fr>
Date: Thu, 12 Dec 2024 17:55:47 +0100
Subject: [PATCH] Update .gitlab-ci.yml file; now using a redhat 8.8 image for
 CI.

---
 .gitlab-ci.yml | 31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 67ae263..c1aadac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,30 +1,11 @@
 makefile_generation_and_compilation_plus_run_nrt_tests_cluster:
-    image: registry-gitlab.pasteur.fr/dsi-tools/docker-images:centOS8_ROCK
+    image: docker:27
     script: 
-        - source /etc/profile.d/gensoft_modules.sh 
-        - module av
-        - module load gcc/7.2.0
-        - module load m4/1.4.17
-        - module load autoconf/2.69
-        - module load automake/1.15
-        - module list
-        - export PATH=$PATH:/usr/bin
-        - echo $PATH
-        - ls /usr/bin
-        - yum update -y && yum install -y perl perl-Thread-Queue.noarch && /usr/bin/perl --version
-        # - rm configure 
-        - aclocal
-        - autoconf -i
-        - automake
-        - ./configure
-        - make; cd src
-        - ./unit_test_fqreader
-        - ./unit_test_math_utils
-        - ./unit_test_fqwriter
-        - ./unit_test_cms
-        - ./unit_test_read_utils
-        - cd ..; make check
-        - make distcheck
+        - sleep 3 # Try to avoid "ERROR: open /certs/client/ca.pem: no such file or directory"
+        - docker build -t test_rh8.8_image -f Dockerfile_redhat_autotools .
+        - docker run -td -v $(pwd):/ROCK -w /ROCK --name test_all test_rh8.8_image 
+        - docker ps -a
+        - docker exec test_all sh -c "./run_tests_ci.sh"
         
 
 makefile_generation_and_compilation_plus_run_nrt_tests_ubuntu:
-- 
GitLab