5 SCRIPT=$PWD/scripted_gmx_docker_builds.py
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.
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"
21 echo "Building the following images."
22 for arg_string in "${args[@]}"; do
23 # shellcheck disable=SC2086
24 python3 -m utility $arg_string
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 -
36 echo "Run the following to upload the updated images."
38 for tag in "${tags[@]}"; do
39 echo "docker push $tag"