X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=Dockerfile;h=5be6ec411f7b673f670f7343af8a57c2073b9f47;hb=74ad74b2ec0700c171ce88aaa408926b44d609ca;hp=4b7a56bbc0b8f31b8e08fc618925b4a735b492b3;hpb=812497208cfaca3b228daa9f88330fcbbefcb90c;p=mbt-docker.git diff --git a/Dockerfile b/Dockerfile index 4b7a56b..5be6ec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -113,12 +113,17 @@ RUN set -ex \ ARG SAPMACHINE_VERSION=11.0.16.1 -RUN set -ex \ +RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ + && case "${dpkgArch##*-}" in \ + amd64) ARCH='amd64';; \ + *) echo "unsupported architecture"; exit 1 ;; \ + esac \ + && set -ex \ && apt-get update \ && apt-get install -y ca-certificates wget --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && wget -q -O - https://dist.sapmachine.io/debian/sapmachine.key | tee /etc/apt/trusted.gpg.d/sapmachine.gpg.asc \ - && echo "deb http://dist.sapmachine.io/debian/amd64/ ./" | tee /etc/apt/sources.list.d/sapmachine.list \ + && echo "deb http://dist.sapmachine.io/debian/${ARCH}/ ./" | tee /etc/apt/sources.list.d/sapmachine.list \ && apt-get update \ && apt-get install -y sapmachine-$(echo ${SAPMACHINE_VERSION} | cut -d. -f1)-jdk=${SAPMACHINE_VERSION} --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ @@ -158,7 +163,7 @@ RUN set -ex \ # SAP e-Mobility requirements RUN set -ex \ && apt-get update \ - && apt-get install -y build-essential python3 --no-install-recommends \ + && apt-get install -y ca-certificates build-essential python3 --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ # smoke test && python3 --version