-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild_all
executable file
·33 lines (31 loc) · 1.4 KB
/
build_all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
for i in 'quay.io/centos/centos:stream10' 'quay.io/centos/centos:stream9' 'fedora:41' 'fedora:40' 'fedora:39' \
'rockylinux/rockylinux:9' 'rockylinux/rockylinux:8' 'ubuntu:24.04' 'ubuntu:22.04' 'ubuntu:20.04'
do
docker pull $i
done
for d in centos-stream10-pys centos-stream10-pys-systemd \
centos-stream9-pys centos-stream9-pys-systemd \
fedora41-pys fedora41-pys-systemd fedora40-pys fedora40-pys-systemd \
fedora39-pys fedora39-pys-systemd \
rockylinux9-pys rockylinux9-pys-systemd rockylinux8-pys rockylinux8-pys-systemd \
ubuntu2404-pys ubuntu2404-pys-systemd ubuntu2204-pys ubuntu2204-pys-systemd \
ubuntu2004-pys ubuntu2004-pys-systemd
do
pushd $d
docker build -t nmusatti/$(basename $PWD) --no-cache .
if [[ $(basename $PWD) =~ systemd ]]; then
( sudo docker run -v /sys/fs/cgroup:/sys/fs/cgroup:rw -it --rm --privileged nmusatti/$(basename $PWD) /bin/bash )
else
docker run -it --rm nmusatti/$(basename $PWD)
fi
[[ $? == 0 ]] && docker push nmusatti/$(basename $PWD)
popd
done
docker tag nmusatti/fedora41-pys nmusatti/fedora-pys
docker push nmusatti/fedora-pys
docker tag nmusatti/fedora41-pys-systemd nmusatti/fedora-pys-systemd
docker push nmusatti/fedora-pys-systemd
docker tag nmusatti/ubuntu2404-pys nmusatti/ubuntu-pys
docker push nmusatti/ubuntu-pys
docker tag nmusatti/ubuntu2404-pys-systemd nmusatti/ubuntu-pys-systemd
docker push nmusatti/ubuntu-pys-systemd