Skip to content

Commit

Permalink
MDBF-778: Allow building buildbot workers without a galera included
Browse files Browse the repository at this point in the history
To support the nongalera workflow the galera removed lines must
be workable when those lines are removed. This means if statements
cannot be empty and there should be no lingering `fi` closures.
  • Loading branch information
grooverdan committed Aug 22, 2024
1 parent 6caf5c7 commit e47dd83
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci_build_images/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ RUN . /etc/os-release \
&& if [ "${VERSION_ID}" = "20.04" ]; then apt-get -y install --no-install-recommends g++-10; fi \
&& if [ "$(arch)" = "x86_64" ]; then ARCH="amd64"; else ARCH=$(arch); fi \
&& if curl --head --silent "https://ci.mariadb.org/galera/mariadb-4.x-latest-gal-${ARCH}-${ID}-$(echo "$VERSION_ID" | sed 's/\.//').sources" | head -n1 | grep -q 200; then \
curl -s "https://ci.mariadb.org/galera/mariadb-4.x-latest-gal-${ARCH}-${ID}-$(echo "$VERSION_ID" | sed 's/\.//').sources" >/etc/apt/sources.list.d/galera-4.sources; \
fi \
curl -s "https://ci.mariadb.org/galera/mariadb-4.x-latest-gal-${ARCH}-${ID}-$(echo "$VERSION_ID" | sed 's/\.//').sources" >/etc/apt/sources.list.d/galera-4.sources; fi \
&& apt-get update \
&& curl -skO https://raw.githubusercontent.com/MariaDB/server/44e4b93316be8df130c6d87880da3500d83dbe10/debian/control \
&& mkdir debian \
Expand Down Expand Up @@ -82,9 +81,7 @@ RUN . /etc/os-release \
socat \
sudo \
wget \
&& if [ "$(getconf LONG_BIT)" = 64 ]; then \
apt-get -y install --no-install-recommends galera-4; \
fi \
&& if [ "$(getconf LONG_BIT)" = 64 ]; then apt-get -y install --no-install-recommends galera-4; fi \
&& if [ "${VERSION_ID}" != 18.04 ]; then \
apt-get -y install --no-install-recommends flex; \
fi \
Expand Down

0 comments on commit e47dd83

Please sign in to comment.