Skip to content

Commit 6d9fff3

Browse files
authored
Merge pull request #3189 from boutproject/ci-fedora-container
CI: switch Fedora to a pre-built container
2 parents ba87329 + bde263a commit 6d9fff3

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

.ci_fedora.sh

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ then
2121
cmd="sudo docker"
2222
fi
2323
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
2625
time $cmd create --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
2726
--shm-size 256M \
28-
--name mobydick registry.fedoraproject.org/fedora:$version \
27+
--name mobydick ghcr.io/dschwoerer/bout-container-base:ci-fedora \
2928
/tmp/BOUT-dev/.ci_fedora.sh $mpi
3029
time $cmd cp ${TRAVIS_BUILD_DIR:-$(pwd)} mobydick:/tmp/BOUT-dev
3130
time $cmd start -a mobydick
@@ -34,27 +33,8 @@ fi
3433

3534
test . != ".$1" && mpi="$1" || mpi=openmpi
3635

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"
5636
## If we are called as normal user, run test
57-
else
37+
cp -a /tmp/BOUT-dev /home/test/
5838
. /etc/profile.d/modules.sh
5939
module load mpi/${1}-x86_64
6040
export OMPI_MCA_rmaps_base_oversubscribe=yes
@@ -76,4 +56,3 @@ else
7656

7757
time make -C build build-check -j 2
7858
time make -C build check
79-
fi

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
with:
210210
submodules: true
211211
- name: Build Fedora
212-
run: ./.ci_fedora.sh setup openmpi latest
212+
run: ./.ci_fedora.sh setup openmpi
213213
shell: bash
214214
env:
215215
TRAVIS_BUILD_DIR: ${{ github.workspace }}

0 commit comments

Comments
 (0)