|
21 | 21 | cmd="sudo docker" |
22 | 22 | fi |
23 | 23 | test . != ".$2" && mpi="$2" || mpi=openmpi |
24 | | - test . != ".$3" && version="$3" || version=rawhide |
25 | | - time $cmd pull registry.fedoraproject.org/fedora:$version |
| 24 | + time $cmd pull ghcr.io/dschwoerer/bout-container-base:ci-fedora |
26 | 25 | time $cmd create --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ |
27 | 26 | --shm-size 256M \ |
28 | | - --name mobydick registry.fedoraproject.org/fedora:$version \ |
| 27 | + --name mobydick ghcr.io/dschwoerer/bout-container-base:ci-fedora \ |
29 | 28 | /tmp/BOUT-dev/.ci_fedora.sh $mpi |
30 | 29 | time $cmd cp ${TRAVIS_BUILD_DIR:-$(pwd)} mobydick:/tmp/BOUT-dev |
31 | 30 | time $cmd start -a mobydick |
|
34 | 33 |
|
35 | 34 | test . != ".$1" && mpi="$1" || mpi=openmpi |
36 | 35 |
|
37 | | -## If we are called as root, setup everything |
38 | | -if [ $UID -eq 0 ] |
39 | | -then |
40 | | - cat /etc/os-release |
41 | | - # Ignore weak depencies |
42 | | - echo "install_weak_deps=False" >> /etc/dnf/dnf.conf |
43 | | - echo "minrate=10M" >> /etc/dnf/dnf.conf |
44 | | - export FORCE_COLUMNS=200 |
45 | | - time dnf -y install dnf5 |
46 | | - time dnf5 -y install dnf5-plugins cmake python3-zoidberg python3-natsort python3-boututils |
47 | | - # Allow to override packages - see #2073 |
48 | | - time dnf5 copr enable -y davidsch/fixes4bout || : |
49 | | - time dnf5 -y upgrade |
50 | | - time dnf5 -y builddep bout++ |
51 | | - useradd test |
52 | | - cp -a /tmp/BOUT-dev /home/test/ |
53 | | - chown -R test /home/test |
54 | | - chmod u+rwX /home/test -R |
55 | | - su - test -c "${0/\/tmp/\/home\/test} $mpi" |
56 | 36 | ## If we are called as normal user, run test |
57 | | -else |
| 37 | + cp -a /tmp/BOUT-dev /home/test/ |
58 | 38 | . /etc/profile.d/modules.sh |
59 | 39 | module load mpi/${1}-x86_64 |
60 | 40 | export OMPI_MCA_rmaps_base_oversubscribe=yes |
|
76 | 56 |
|
77 | 57 | time make -C build build-check -j 2 |
78 | 58 | time make -C build check |
79 | | -fi |
0 commit comments