diff --git a/9/community/Dockerfile b/9/community/Dockerfile index 58f07def..5c2b4b09 100644 --- a/9/community/Dockerfile +++ b/9/community/Dockerfile @@ -1,94 +1,15 @@ FROM alpine:3.14 -ENV JAVA_VERSION="jdk-11.0.11+9" \ - LANG='en_US.UTF-8' \ +ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US:en' \ LC_ALL='en_US.UTF-8' -# -# glibc setup -# -RUN set -eux; \ - apk add --no-cache tzdata --virtual .build-deps curl binutils zstd; \ - GLIBC_VER="2.33-r0"; \ - ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"; \ - GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.2.0-6-x86_64.pkg.tar.zst"; \ - GCC_LIBS_SHA256="e33b45e4a10ef26259d6acf8e7b5dd6dc63800641e41eb67fa6588d061f79c1c"; \ - ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz"; \ - ZLIB_SHA256=43a17987d348e0b395cb6e28d2ece65fb3b5a0fe433714762780d18c0451c149; \ - curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub; \ - SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"; \ - echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - ; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk; \ - curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - /usr/glibc-compat/bin/localedef --inputfile en_US --charmap UTF-8 "$LANG" || true ;\ - echo "export LANG=$LANG" > /etc/profile.d/locale.sh; \ - curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst; \ - echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c - ; \ - mkdir /tmp/gcc; \ - zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp; \ - tar -xf /tmp/gcc-libs.tar -C /tmp/gcc; \ - mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib; \ - strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*; \ - curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz; \ - echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c - ;\ - mkdir /tmp/libz; \ - tar -xf /tmp/libz.tar.xz -C /tmp/libz; \ - mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib; \ - apk del --purge .build-deps glibc-i18n; \ - rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/*; - -# -# AdoptOpenJDK/openjdk11 setup -# -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps curl; \ - ARCH="$(apk --print-arch)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='fde6b29df23b6e7ed6e16a237a0f44273fb9e267fdfbd0b3de5add98e55649f6'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - armhf|armv7l) \ - ESUM='ad02656f800fd64c2b090b23ad24a099d9cd1054948ecb0e9851bc39c51c8be8'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - ppc64el|ppc64le) \ - ESUM='37c19c7c2d1cea627b854a475ef1a765d30357d765d20cf3f96590037e79d0f3'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - s390x) \ - ESUM='f18101fc50aad795a41b4d3bbc591308c83664fd2390bf2bc007fd9b3d531e6c'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_s390x_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - amd64|x86_64) \ - ESUM='144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /opt/java/openjdk; \ - cd /opt/java/openjdk; \ - tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ - apk del --purge .fetch-deps; \ - rm -rf /var/cache/apk/*; \ - rm -rf /tmp/openjdk.tar.gz; - # # SonarQube setup # ARG SONARQUBE_VERSION=9.0.1.46107 ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${SONARQUBE_VERSION}.zip -ENV JAVA_HOME=/opt/java/openjdk \ +ENV JAVA_HOME='/usr/lib/jvm/java-11-openjdk' \ PATH="/opt/java/openjdk/bin:$PATH" \ SONARQUBE_HOME=/opt/sonarqube \ SONAR_VERSION="${SONARQUBE_VERSION}" \ @@ -101,7 +22,7 @@ RUN set -eux; \ addgroup -S -g 1000 sonarqube; \ adduser -S -D -u 1000 -G sonarqube sonarqube; \ apk add --no-cache --virtual build-dependencies gnupg unzip curl; \ - apk add --no-cache bash su-exec ttf-dejavu; \ + apk add --no-cache bash su-exec ttf-dejavu openjdk11-jre-headless; \ # pub 2048R/D26468DE 2015-05-25 # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE # uid sonarsource_deployer (Sonarsource Deployer) diff --git a/9/datacenter/app/Dockerfile b/9/datacenter/app/Dockerfile index 91b4cea3..7029c293 100644 --- a/9/datacenter/app/Dockerfile +++ b/9/datacenter/app/Dockerfile @@ -1,94 +1,15 @@ FROM alpine:3.14 -ENV JAVA_VERSION="jdk-11.0.11+9" \ - LANG='en_US.UTF-8' \ +ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US:en' \ LC_ALL='en_US.UTF-8' -# -# glibc setup -# -RUN set -eux; \ - apk add --no-cache tzdata --virtual .build-deps curl binutils zstd; \ - GLIBC_VER="2.33-r0"; \ - ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"; \ - GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.2.0-6-x86_64.pkg.tar.zst"; \ - GCC_LIBS_SHA256="e33b45e4a10ef26259d6acf8e7b5dd6dc63800641e41eb67fa6588d061f79c1c"; \ - ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz"; \ - ZLIB_SHA256=43a17987d348e0b395cb6e28d2ece65fb3b5a0fe433714762780d18c0451c149; \ - curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub; \ - SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"; \ - echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - ; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk; \ - curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - /usr/glibc-compat/bin/localedef --inputfile en_US --charmap UTF-8 "$LANG" || true ;\ - echo "export LANG=$LANG" > /etc/profile.d/locale.sh; \ - curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst; \ - echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c - ; \ - mkdir /tmp/gcc; \ - zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp; \ - tar -xf /tmp/gcc-libs.tar -C /tmp/gcc; \ - mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib; \ - strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*; \ - curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz; \ - echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c - ;\ - mkdir /tmp/libz; \ - tar -xf /tmp/libz.tar.xz -C /tmp/libz; \ - mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib; \ - apk del --purge .build-deps glibc-i18n; \ - rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/*; - -# -# AdoptOpenJDK/openjdk11 setup -# -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps curl; \ - ARCH="$(apk --print-arch)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='fde6b29df23b6e7ed6e16a237a0f44273fb9e267fdfbd0b3de5add98e55649f6'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - armhf|armv7l) \ - ESUM='ad02656f800fd64c2b090b23ad24a099d9cd1054948ecb0e9851bc39c51c8be8'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - ppc64el|ppc64le) \ - ESUM='37c19c7c2d1cea627b854a475ef1a765d30357d765d20cf3f96590037e79d0f3'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - s390x) \ - ESUM='f18101fc50aad795a41b4d3bbc591308c83664fd2390bf2bc007fd9b3d531e6c'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_s390x_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - amd64|x86_64) \ - ESUM='144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /opt/java/openjdk; \ - cd /opt/java/openjdk; \ - tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ - apk del --purge .fetch-deps; \ - rm -rf /var/cache/apk/*; \ - rm -rf /tmp/openjdk.tar.gz; - # # SonarQube setup # ARG SONARQUBE_VERSION=9.0.1.46107 ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-datacenter/sonarqube-datacenter-${SONARQUBE_VERSION}.zip -ENV JAVA_HOME=/opt/java/openjdk \ +ENV JAVA_HOME='/usr/lib/jvm/java-11-openjdk' \ PATH="/opt/java/openjdk/bin:$PATH" \ SONARQUBE_HOME=/opt/sonarqube \ SONAR_VERSION="${SONARQUBE_VERSION}" \ @@ -103,7 +24,7 @@ RUN set -eux; \ addgroup -S -g 1000 sonarqube; \ adduser -S -D -u 1000 -G sonarqube sonarqube; \ apk add --no-cache --virtual build-dependencies gnupg unzip curl; \ - apk add --no-cache bash su-exec ttf-dejavu; \ + apk add --no-cache bash su-exec ttf-dejavu openjdk11-jre-headless; \ # pub 2048R/D26468DE 2015-05-25 # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE # uid sonarsource_deployer (Sonarsource Deployer) diff --git a/9/datacenter/search/Dockerfile b/9/datacenter/search/Dockerfile index 129a7f6e..a9de9041 100644 --- a/9/datacenter/search/Dockerfile +++ b/9/datacenter/search/Dockerfile @@ -1,93 +1,15 @@ FROM alpine:3.14 -ENV JAVA_VERSION="jdk-11.0.11+9" \ - LANG='en_US.UTF-8' \ +ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US:en' \ LC_ALL='en_US.UTF-8' -# -# glibc setup -# -RUN set -eux; \ - apk add --no-cache tzdata --virtual .build-deps curl binutils zstd; \ - GLIBC_VER="2.33-r0"; \ - ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"; \ - GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.2.0-6-x86_64.pkg.tar.zst"; \ - GCC_LIBS_SHA256="e33b45e4a10ef26259d6acf8e7b5dd6dc63800641e41eb67fa6588d061f79c1c"; \ - ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz"; \ - ZLIB_SHA256=43a17987d348e0b395cb6e28d2ece65fb3b5a0fe433714762780d18c0451c149; \ - curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub; \ - SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"; \ - echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - ; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk; \ - curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - /usr/glibc-compat/bin/localedef --inputfile en_US --charmap UTF-8 "$LANG" || true ;\ - echo "export LANG=$LANG" > /etc/profile.d/locale.sh; \ - curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst; \ - echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c - ; \ - mkdir /tmp/gcc; \ - zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp; \ - tar -xf /tmp/gcc-libs.tar -C /tmp/gcc; \ - mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib; \ - strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*; \ - curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz; \ - echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c - ;\ - mkdir /tmp/libz; \ - tar -xf /tmp/libz.tar.xz -C /tmp/libz; \ - mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib; \ - apk del --purge .build-deps glibc-i18n; \ - rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/*; -# -# AdoptOpenJDK/openjdk11 setup -# -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps curl; \ - ARCH="$(apk --print-arch)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='fde6b29df23b6e7ed6e16a237a0f44273fb9e267fdfbd0b3de5add98e55649f6'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - armhf|armv7l) \ - ESUM='ad02656f800fd64c2b090b23ad24a099d9cd1054948ecb0e9851bc39c51c8be8'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - ppc64el|ppc64le) \ - ESUM='37c19c7c2d1cea627b854a475ef1a765d30357d765d20cf3f96590037e79d0f3'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - s390x) \ - ESUM='f18101fc50aad795a41b4d3bbc591308c83664fd2390bf2bc007fd9b3d531e6c'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_s390x_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - amd64|x86_64) \ - ESUM='144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /opt/java/openjdk; \ - cd /opt/java/openjdk; \ - tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ - apk del --purge .fetch-deps; \ - rm -rf /var/cache/apk/*; \ - rm -rf /tmp/openjdk.tar.gz; - # # SonarQube setup # ARG SONARQUBE_VERSION=9.0.1.46107 ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-datacenter/sonarqube-datacenter-${SONARQUBE_VERSION}.zip -ENV JAVA_HOME=/opt/java/openjdk \ +ENV JAVA_HOME='/usr/lib/jvm/java-11-openjdk' \ PATH="/opt/java/openjdk/bin:$PATH" \ SONARQUBE_HOME=/opt/sonarqube \ SONAR_VERSION="${SONARQUBE_VERSION}" \ @@ -102,7 +24,7 @@ RUN set -eux; \ addgroup -S -g 1000 sonarqube; \ adduser -S -D -u 1000 -G sonarqube sonarqube; \ apk add --no-cache --virtual build-dependencies gnupg unzip curl; \ - apk add --no-cache bash su-exec ttf-dejavu; \ + apk add --no-cache bash su-exec ttf-dejavu openjdk11-jre-headless; \ # pub 2048R/D26468DE 2015-05-25 # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE # uid sonarsource_deployer (Sonarsource Deployer) diff --git a/9/developer/Dockerfile b/9/developer/Dockerfile index 6037aa5d..4779bd6f 100644 --- a/9/developer/Dockerfile +++ b/9/developer/Dockerfile @@ -1,94 +1,15 @@ FROM alpine:3.14 -ENV JAVA_VERSION="jdk-11.0.11+9" \ - LANG='en_US.UTF-8' \ +ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US:en' \ LC_ALL='en_US.UTF-8' -# -# glibc setup -# -RUN set -eux; \ - apk add --no-cache tzdata --virtual .build-deps curl binutils zstd; \ - GLIBC_VER="2.33-r0"; \ - ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"; \ - GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.2.0-6-x86_64.pkg.tar.zst"; \ - GCC_LIBS_SHA256="e33b45e4a10ef26259d6acf8e7b5dd6dc63800641e41eb67fa6588d061f79c1c"; \ - ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz"; \ - ZLIB_SHA256=43a17987d348e0b395cb6e28d2ece65fb3b5a0fe433714762780d18c0451c149; \ - curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub; \ - SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"; \ - echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - ; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk; \ - curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - /usr/glibc-compat/bin/localedef --inputfile en_US --charmap UTF-8 "$LANG" || true ;\ - echo "export LANG=$LANG" > /etc/profile.d/locale.sh; \ - curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst; \ - echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c - ; \ - mkdir /tmp/gcc; \ - zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp; \ - tar -xf /tmp/gcc-libs.tar -C /tmp/gcc; \ - mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib; \ - strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*; \ - curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz; \ - echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c - ;\ - mkdir /tmp/libz; \ - tar -xf /tmp/libz.tar.xz -C /tmp/libz; \ - mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib; \ - apk del --purge .build-deps glibc-i18n; \ - rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/*; - -# -# AdoptOpenJDK/openjdk11 setup -# -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps curl; \ - ARCH="$(apk --print-arch)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='fde6b29df23b6e7ed6e16a237a0f44273fb9e267fdfbd0b3de5add98e55649f6'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - armhf|armv7l) \ - ESUM='ad02656f800fd64c2b090b23ad24a099d9cd1054948ecb0e9851bc39c51c8be8'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - ppc64el|ppc64le) \ - ESUM='37c19c7c2d1cea627b854a475ef1a765d30357d765d20cf3f96590037e79d0f3'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - s390x) \ - ESUM='f18101fc50aad795a41b4d3bbc591308c83664fd2390bf2bc007fd9b3d531e6c'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_s390x_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - amd64|x86_64) \ - ESUM='144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /opt/java/openjdk; \ - cd /opt/java/openjdk; \ - tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ - apk del --purge .fetch-deps; \ - rm -rf /var/cache/apk/*; \ - rm -rf /tmp/openjdk.tar.gz; - # # SonarQube setup # ARG SONARQUBE_VERSION=9.0.1.46107 ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-developer/sonarqube-developer-${SONARQUBE_VERSION}.zip -ENV JAVA_HOME=/opt/java/openjdk \ +ENV JAVA_HOME='/usr/lib/jvm/java-11-openjdk' \ PATH="/opt/java/openjdk/bin:$PATH" \ SONARQUBE_HOME=/opt/sonarqube \ SONAR_VERSION="${SONARQUBE_VERSION}" \ @@ -101,7 +22,7 @@ RUN set -eux; \ addgroup -S -g 1000 sonarqube; \ adduser -S -D -u 1000 -G sonarqube sonarqube; \ apk add --no-cache --virtual build-dependencies gnupg unzip curl; \ - apk add --no-cache bash su-exec ttf-dejavu; \ + apk add --no-cache bash su-exec ttf-dejavu openjdk11-jre-headless; \ # pub 2048R/D26468DE 2015-05-25 # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE # uid sonarsource_deployer (Sonarsource Deployer) diff --git a/9/enterprise/Dockerfile b/9/enterprise/Dockerfile index 8a78cb50..6b9c272d 100644 --- a/9/enterprise/Dockerfile +++ b/9/enterprise/Dockerfile @@ -1,94 +1,15 @@ FROM alpine:3.14 -ENV JAVA_VERSION="jdk-11.0.11+9" \ - LANG='en_US.UTF-8' \ +ENV LANG='en_US.UTF-8' \ LANGUAGE='en_US:en' \ LC_ALL='en_US.UTF-8' -# -# glibc setup -# -RUN set -eux; \ - apk add --no-cache tzdata --virtual .build-deps curl binutils zstd; \ - GLIBC_VER="2.33-r0"; \ - ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"; \ - GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.2.0-6-x86_64.pkg.tar.zst"; \ - GCC_LIBS_SHA256="e33b45e4a10ef26259d6acf8e7b5dd6dc63800641e41eb67fa6588d061f79c1c"; \ - ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz"; \ - ZLIB_SHA256=43a17987d348e0b395cb6e28d2ece65fb3b5a0fe433714762780d18c0451c149; \ - curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub; \ - SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"; \ - echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c - ; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk; \ - curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk; \ - curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk; \ - /usr/glibc-compat/bin/localedef --inputfile en_US --charmap UTF-8 "$LANG" || true ;\ - echo "export LANG=$LANG" > /etc/profile.d/locale.sh; \ - curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst; \ - echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c - ; \ - mkdir /tmp/gcc; \ - zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp; \ - tar -xf /tmp/gcc-libs.tar -C /tmp/gcc; \ - mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib; \ - strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*; \ - curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz; \ - echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c - ;\ - mkdir /tmp/libz; \ - tar -xf /tmp/libz.tar.xz -C /tmp/libz; \ - mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib; \ - apk del --purge .build-deps glibc-i18n; \ - rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/*; - -# -# AdoptOpenJDK/openjdk11 setup -# -RUN set -eux; \ - apk add --no-cache --virtual .fetch-deps curl; \ - ARCH="$(apk --print-arch)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='fde6b29df23b6e7ed6e16a237a0f44273fb9e267fdfbd0b3de5add98e55649f6'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - armhf|armv7l) \ - ESUM='ad02656f800fd64c2b090b23ad24a099d9cd1054948ecb0e9851bc39c51c8be8'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - ppc64el|ppc64le) \ - ESUM='37c19c7c2d1cea627b854a475ef1a765d30357d765d20cf3f96590037e79d0f3'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - s390x) \ - ESUM='f18101fc50aad795a41b4d3bbc591308c83664fd2390bf2bc007fd9b3d531e6c'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_s390x_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - amd64|x86_64) \ - ESUM='144f2c6bcf64faa32016f2474b6c01031be75d25325e9c3097aed6589bc5d548'; \ - BINARY_URL='https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.11_9.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /opt/java/openjdk; \ - cd /opt/java/openjdk; \ - tar -xf /tmp/openjdk.tar.gz --strip-components=1; \ - apk del --purge .fetch-deps; \ - rm -rf /var/cache/apk/*; \ - rm -rf /tmp/openjdk.tar.gz; - # # SonarQube setup # ARG SONARQUBE_VERSION=9.0.1.46107 ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-enterprise/sonarqube-enterprise-${SONARQUBE_VERSION}.zip -ENV JAVA_HOME=/opt/java/openjdk \ +ENV JAVA_HOME='/usr/lib/jvm/java-11-openjdk' \ PATH="/opt/java/openjdk/bin:$PATH" \ SONARQUBE_HOME=/opt/sonarqube \ SONAR_VERSION="${SONARQUBE_VERSION}" \ @@ -101,7 +22,7 @@ RUN set -eux; \ addgroup -S -g 1000 sonarqube; \ adduser -S -D -u 1000 -G sonarqube sonarqube; \ apk add --no-cache --virtual build-dependencies gnupg unzip curl; \ - apk add --no-cache bash su-exec ttf-dejavu; \ + apk add --no-cache bash su-exec ttf-dejavu openjdk11-jre-headless; \ # pub 2048R/D26468DE 2015-05-25 # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE # uid sonarsource_deployer (Sonarsource Deployer)