Distinguish Docker images for different release requirements.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Fri, 6 Mar 2020 11:16:04 +0000 (14:16 +0300)
committerEric Irrgang <ericirrgang@gmail.com>
Tue, 10 Mar 2020 11:29:28 +0000 (12:29 +0100)
Free up the image tag namespace for granularly describing image
revisions (and create smaller image repositories) by using the matrix
slug as the image name. Tag images with the major release number (2020).

Refs #3395

Change-Id: I917f511c8bc11c4cedf85943eb7388ce0d5f9740

admin/ci-templates/.build-docs-template.yml
admin/ci-templates/.build-template.yml
admin/ci-templates/.image-templates.yml
admin/dockerfiles/buildall.sh
admin/dockerfiles/ci-clang/Dockerfile
admin/dockerfiles/ci-docs-clang/Dockerfile
admin/dockerfiles/ci-docs-gcc/Dockerfile
admin/dockerfiles/ci-gcc/Dockerfile

index 6f257f969a88cee3ca122c2b3e0735e1aa4e9f0c..b97646e393b32f5bc8c73f0ba3a48217e5476281 100644 (file)
@@ -1,7 +1,7 @@
 .configure-docs-template:
   # Built by admin/dockerfiles/ci-docs
   # TODO this should be organized more like the current documentation.py script
-  image: gromacs/continuous-integration:ci-docs
+  image: gromacs/ci-docs:2020
   stage: configure-build
   variables:
     KUBERNETES_CPU_LIMIT: 1
@@ -64,7 +64,7 @@
 .build-docs-binary-template:
   # Built by admin/dockerfiles/ci-docs
   # TODO this should be organized more like the current documentation.py script
-  image: gromacs/continuous-integration:ci-docs
+  image: gromacs/ci-docs:2020
   script:
     - cd $BUILD_DIR
     - cmake --build . --target gmx -- -j8
@@ -79,7 +79,7 @@
 .build-docs-webpage-template:
   # Built by admin/dockerfiles/ci-docs
   # TODO this should be organized more like the current documentation.py script
-  image: gromacs/continuous-integration:ci-docs
+  image: gromacs/ci-docs:2020
   variables:
     KUBERNETES_CPU_LIMIT: 4
     KUBERNETES_CPU_REQUEST: 2
 .configure-docs-release-template:
   # Built by admin/dockerfiles/ci-docs
   # TODO this should be organized more like the current documentation.py script
-  image: gromacs/continuous-integration:ci-docs
+  image: gromacs/ci-docs:2020
   stage: release-configure
   variables:
     KUBERNETES_CPU_LIMIT: 1
index 256123fcf73066acfe7dc75adb032e28afa96413..fed9984703aca9cb2d72bca64b0664fd3a98560a 100644 (file)
 # Redmine #3361
 .archive-build-template:
   # Dockerfiles are from dockerhub, user eriklindahl
-  image: gromacs/continuous-integration:ci-docs
+  image: gromacs/ci-docs:2020
   variables:
   variables:
     KUBERNETES_CPU_LIMIT: 4
index a7196734a5b2726064562ae6c38096b86d51749e..311b45c46c5310a1ed91c04973fe41505238c066 100644 (file)
@@ -1,47 +1,47 @@
 .gcc5-template:
-  image: gromacs/continuous-integration:ci-gcc-5
+  image: gromacs/ci-gcc-5:2020
 
 .gcc6-template:
-  image: gromacs/continuous-integration:ci-gcc-6
+  image: gromacs/ci-gcc-6:2020
 
 .gcc7-template:
-  image: gromacs/continuous-integration:ci-gcc-7
+  image: gromacs/ci-gcc-7:2020
 
 .gcc8-template:
-  image: gromacs/continuous-integration:ci-gcc-8
+  image: gromacs/ci-gcc-8:2020
 
 .clang6-template:
-  image: gromacs/continuous-integration:ci-clang-6
+  image: gromacs/ci-clang-6:2020
 
 .clang7-template:
-  image: gromacs/continuous-integration:ci-clang-7
+  image: gromacs/ci-clang-7:2020
 
 .clang8-template:
-  image: gromacs/continuous-integration:ci-clang-8
+  image: gromacs/ci-clang-8:2020
 
 .gcc5-gmxapi-template:
-  image: gromacs/continuous-integration:ci-gcc-5-gmxapi
+  image: gromacs/ci-gcc-5-gmxapi:2020
 
 .gcc6-gmxapi-template:
-  image: gromacs/continuous-integration:ci-gcc-6-gmxapi
+  image: gromacs/ci-gcc-6-gmxapi:2020
 
 .gcc7-gmxapi-template:
-  image: gromacs/continuous-integration:ci-gcc-7-gmxapi
+  image: gromacs/ci-gcc-7-gmxapi:2020
 
 .gcc8-gmxapi-template:
-  image: gromacs/continuous-integration:ci-gcc-8-gmxapi
+  image: gromacs/ci-gcc-8-gmxapi:2020
 
 .clang6-gmxapi-template:
-  image: gromacs/continuous-integration:ci-clang-6-gmxapi
+  image: gromacs/ci-clang-6-gmxapi:2020
 
 .clang7-gmxapi-template:
-  image: gromacs/continuous-integration:ci-clang-7-gmxapi
+  image: gromacs/ci-clang-7-gmxapi:2020
 
 .clang8-gmxapi-template:
-  image: gromacs/continuous-integration:ci-clang-8-gmxapi
+  image: gromacs/ci-clang-8-gmxapi:2020
 
 .gcc-8-cuda-10.2-template:
-  image: gromacs/continuous-integration:ci-gcc-8-cuda-10.2
+  image: gromacs/ci-gcc-8-cuda-10.2:2020
   variables:
     CUDA_BASE_VERSION: "10.2"
     COMPILER_MAJOR_VERSION: 8
index 9b69b5545c4be4648820ae1f9229e80322a60d75..b713aa6a73aad5f135b718a052ab60080902bbdc 100644 (file)
@@ -7,7 +7,7 @@ export SLUG="ci-$MATRIX"
 
 docker login
 
-tags[0]=gromacs/base
+tags[0]=gromacs/base:2020
 docker pull ${tags[0]} || true
 docker build -t ${tags[0]} --cache-from ${tags[0]} base
 
@@ -15,7 +15,7 @@ tool=clang
 for tool_version in 6 7 8; do
   MATRIX="$tool-$tool_version"
   SLUG="ci-$MATRIX"
-  tag=gromacs/continuous-integration:$SLUG
+  tag=gromacs/$SLUG:2020
   tags[${#tags[@]}]=$tag
   docker build \
     -t $tag \
@@ -27,7 +27,7 @@ tool=gcc
 for tool_version in 5 6 7 8; do
   MATRIX="$tool-$tool_version"
   SLUG="ci-$MATRIX"
-  tag=gromacs/continuous-integration:$SLUG
+  tag=gromacs/$SLUG:2020
   tags[${#tags[@]}]=$tag
   docker build \
     -t $tag \
@@ -35,12 +35,12 @@ for tool_version in 5 6 7 8; do
     ci-$tool
 done
 
-tag=gromacs/continuous-integration:ci-docs-clang
+tag=gromacs/ci-docs-clang:2020
 tags[${#tags[@]}]=$tag
 docker build -t $tag \
              ci-docs-clang
 
-tag=gromacs/continuous-integration:ci-docs-gcc
+tag=gromacs/ci-docs-gcc:2020
 tags[${#tags[@]}]=$tag
 docker build -t $tag \
              ci-docs-gcc
index 54f6e3b91337b525db495fa4013063e4b147dfbc..3f9a7267fd73de11ba1b72d4b34ae5f3e1652fce 100644 (file)
@@ -1,7 +1,7 @@
 # Make an image that has the dependencies for building GROMACS with clang.
 # Note when specifying TOOL_VERSION that clang 6.0 packages use the minor version
 # in the name, while 7 and 8 do not.
-FROM gromacs/base
+FROM gromacs/base:2020
 WORKDIR /tmp
 ARG TOOL_VERSION
 RUN \
index deaa2fb5c918c1423d5819d65ec71ae5cb7eec45..7488e7ab483507e2ff7dbea429d8357b2e9a3973 100644 (file)
@@ -33,7 +33,7 @@ RUN \
 # We also install it separatly because it pulls in some dependencies
 # that are needed for the documentation build.
 
-FROM gromacs/continuous-integration:ci-clang-7
+FROM gromacs/ci-clang-7:2020
 WORKDIR /tmp
 COPY --from=doxygen-builder /usr/local/bin/* /usr/local/bin/
 RUN \
index b9c85a99ed56409c4199b6cf5f9475167a17b563..cc594c90cd5a1ae6d3b2fdbec791c7bb1552d8f2 100644 (file)
@@ -33,7 +33,7 @@ RUN \
 # We also install it separatly because it pulls in some dependencies
 # that are needed for the documentation build.
 
-FROM gromacs/continuous-integration:ci-gcc-7
+FROM gromacs/ci-gcc-7:2020
 WORKDIR /tmp
 COPY --from=doxygen-builder /usr/local/bin/* /usr/local/bin/
 RUN \
index a7ac7e7c3626ece367bf7edd3c7d8dcdb8328304..6b92aa07bfaca8bef1abc184f2bc3897cf243ab1 100644 (file)
@@ -1,7 +1,7 @@
 # Make an image that has the dependencies for building GROMACS with gcc.
 
 
-FROM gromacs/base
+FROM gromacs/base:2020
 WORKDIR /tmp
 ARG TOOL_VERSION
 RUN \