Skip to content

Commit

Permalink
Install a recent reprepro version on Ubuntu 22.04
Browse files Browse the repository at this point in the history
This is a temporary fix, the aptly alternative should probably be tested
and implemented since the project seems to be much better maintained. We
skip the reprerpo 5.4 installation on s390x because it's apparently not
packaged on that architecture.

See: https://jira.mariadb.org/browse/MDBF-637

Also prefer VERSION_ID over VERSION_CODENAME when possible.
  • Loading branch information
fauust committed Jan 18, 2024
1 parent 9c1fc0b commit cbad1b5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci_build_images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cat debian.Dockerfile common.Dockerfile >Dockerfile
docker build . -t mariadb.org/buildbot/debian:sid --build-arg mariadb_branch=10.7 --build-arg base_image=debian:sid
# ubuntu
cat debian.Dockerfile common.Dockerfile >Dockerfile
docker build . -t mariadb.org/buildbot/ubuntu:21.04 --build-arg mariadb_branch=10.7 --build-arg base_image=ubuntu:22.04
docker build . -t mariadb.org/buildbot/ubuntu:22.04 --build-arg mariadb_branch=10.7 --build-arg base_image=ubuntu:22.04
# fedora
cat fedora.Dockerfile common.Dockerfile >Dockerfile
docker build . -t mariadb.org/buildbot/fedora:34 --build-arg base_image=fedora:37
Expand Down
27 changes: 24 additions & 3 deletions ci_build_images/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ RUN . /etc/os-release; \
python3-buildbot-worker \
python3-dev \
python3-setuptools \
reprepro \
rsync \
scons \
socat \
Expand All @@ -77,12 +76,34 @@ RUN . /etc/os-release; \
&& if [ "$(getconf LONG_BIT)" = 64 ]; then \
apt-get -y install --no-install-recommends galera-4; \
fi \
&& if [ "${VERSION_CODENAME}" != bionic ]; then \
&& if [ "${VERSION_ID}" != 18.04 ]; then \
apt-get -y install --no-install-recommends flex; \
fi \
&& if [ "${VERSION_CODENAME}" = jammy ]; then \
&& if [ "${VERSION_ID}" = 22.04 ]; then \
apt-get -y install --no-install-recommends clang-14 libpcre3-dev llvm; \
fi \
# see: https://jira.mariadb.org/browse/MDBF-637 \
&& if [ "${VERSION_ID}" = 22.04 ] && [ "$(arch)" != s390x ]; then \
case "$(arch)" in "x86_64") \
deb_arch="amd64"; \
;; \
"x86") \
deb_arch="i386" \
;; \
"aarch64") \
deb_arch="arm64" \
;; \
"ppc64le") \
deb_arch="ppc64el" \
;; \
esac; \
reprepro_version="5.4.3-1"; \
curl -skO "http://ftp.debian.org/debian/pool/main/r/reprepro/reprepro_${reprepro_version}_${deb_arch}.deb"; \
apt-get install -y --no-install-recommends "./reprepro_${reprepro_version}_${deb_arch}.deb"; \
rm -f "./reprepro_${reprepro_version}_${deb_arch}.deb"; \
else \
apt-get install -y --no-install-recommends reprepro; \
fi \
&& apt-get clean

ENV WSREP_PROVIDER=/usr/lib/galera/libgalera_smm.so

0 comments on commit cbad1b5

Please sign in to comment.