X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=Dockerfile;h=e8277c73f2df024947c1c28c92d02fe79e454f81;hb=81986a8d2bf945d84bb3258b96d6310c05fc5c3f;hp=a31c6836f2ae684ef33b91c627e685f4c8b6f1f1;hpb=8c37d866ed2eb9919901f5db84c49e4afe74d38d;p=mbt-docker.git diff --git a/Dockerfile b/Dockerfile index a31c683..e8277c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN set -ex \ && apt-get update \ && apt-get install -y openssl --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ + # smoke test + && openssl version \ && useradd --home-dir ${USER_HOME_DIR} \ --create-home \ --shell /bin/bash \ @@ -21,7 +23,7 @@ RUN set -ex \ ADD http://aia.pki.co.sap.com/aia/SAP%20Global%20Root%20CA.crt \ /etc/ssl/certs/SAP_Global_Root_CA.crt -ARG NODE_VERSION=16.17.1 +ARG NODE_VERSION=16.18.0 RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ && case "${dpkgArch##*-}" in \ @@ -113,22 +115,21 @@ 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 gnupg dirmngr --no-install-recommends \ + && apt-get install -y ca-certificates wget --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ - && for key in \ - CACB9FE09150307D1D22D82962754C3B3ABCFE23 \ - ; do \ - gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \ - gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \ - gpg --batch --export --armor "$key" | tee /etc/apt/trusted.gpg.d/sapmachine-${key}.gpg.asc; \ - done \ - && echo "deb http://dist.sapmachine.io/debian/amd64/ ./" | tee /etc/apt/sources.list.d/sapmachine.list \ + && 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/${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/* \ - && apt-get remove --purge --autoremove -y gnupg dirmngr \ + && apt-get remove --purge --autoremove -y ca-certificates wget \ # smoke test && java --version @@ -149,22 +150,23 @@ RUN set -ex \ && tar -xzf /tmp/apache-maven.tar.gz -C ${MAVEN_HOME} --strip-components=1 \ && rm -f /tmp/apache-maven.tar.gz \ && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \ - && chmod --recursive a+w "${MAVEN_HOME}"/conf/* \ - && apt-get remove --purge --autoremove -y curl \ + && chmod --recursive a+w ${MAVEN_HOME}/conf/* \ + && apt-get remove --purge --autoremove -y ca-certificates curl \ # smoke test && mvn --version ARG MBT_VERSION=1.2.18 RUN set -ex \ - && npm install -g mbt@${MBT_VERSION} \ + && npm install -g --unsafe-perm mbt@${MBT_VERSION} \ + && npm cache clean -g --force \ # smoke test && mbt --version # 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