35d37d8a695e1179a95ebe46b4709371fa7e32bb
[alexxy/gromacs.git] / admin / containers / buildall.sh
1 #!/bin/bash
2
3 set -ev
4
5 SCRIPT=$PWD/scripted_gmx_docker_builds.py
6
7 # Note: All official GROMACS CI images are built
8 # with openmpi on. That reduces the total number of
9 # images needed, because the same one can test library,
10 # thread and no MPI configurations.
11
12 args[${#args[@]}]="--gcc 8 --cuda 11.0 --clfft --mpi openmpi"
13 args[${#args[@]}]="--gcc 7 --clfft --mpi openmpi --ubuntu 18.04"
14 args[${#args[@]}]="--llvm 8 --tsan"
15 args[${#args[@]}]="--llvm 8 --cuda 10.0 --clfft --mpi openmpi"
16 args[${#args[@]}]="--llvm 8 --cuda 11.0 --clfft --mpi openmpi"
17 args[${#args[@]}]="--llvm 9 --clfft --mpi openmpi --ubuntu 18.04"
18 args[${#args[@]}]="--oneapi 2021.1-beta09"
19 args[${#args[@]}]="--llvm --doxygen"
20
21 echo "Building the following images."
22 for arg_string in "${args[@]}"; do
23   # shellcheck disable=SC2086
24   python3 -m utility $arg_string
25 done
26 echo
27
28 for arg_string in "${args[@]}"; do
29   # shellcheck disable=SC2086
30   tag=$(python3 -m utility $arg_string)
31   tags[${#tags[@]}]=$tag
32   # shellcheck disable=SC2086
33   python3 $SCRIPT $arg_string | docker build -t $tag -
34 done
35
36 echo "Run the following to upload the updated images."
37 echo "docker login"
38 for tag in "${tags[@]}"; do
39   echo "docker push $tag"
40 done