Skip to content

Commit

Permalink
MDBF-778: no-galera - adjust debian.Dockerfile to remove ARCH=
Browse files Browse the repository at this point in the history
This ensure that hadolint doesn't fail with:

 /mnt/Dockerfile:28 SC2034 warning: ARCH appears unused. Verify use (or export if used externally).
  • Loading branch information
grooverdan committed Aug 22, 2024
1 parent e47dd83 commit 91d8e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci_build_images/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN . /etc/os-release \
equivs \
lsb-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 [ "$(arch)" = "x86_64" ]; then ARCH="amd64"; else ARCH=$(arch); fi /* galera-4 */ \
&& 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 \
&& apt-get update \
Expand Down

0 comments on commit 91d8e66

Please sign in to comment.