diff --git a/druid/Dockerfile b/druid/Dockerfile index ba5638b9f..418327cb1 100644 --- a/druid/Dockerfile +++ b/druid/Dockerfile @@ -41,7 +41,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 druid/stackable/patches/${PRODUCT} /stackab COPY --from=hadoop-builder --chown=${STACKABLE_USER_UID}:0 /stackable/patched-libs /stackable/patched-libs # Cache mounts are owned by root by default -# We need to explicitly give the uid to use which is hardcoded to "1000" in stackable-base +# We need to explicitly give the uid to use. # The cache id has to include the product version that we are building because otherwise # docker encounters race conditions when building multiple versions in parallel, as all # builder containers will share the same cache and the `rm -rf` commands will fail diff --git a/java-devel/Dockerfile b/java-devel/Dockerfile index 2f7bc88a4..a1e06477a 100644 --- a/java-devel/Dockerfile +++ b/java-devel/Dockerfile @@ -23,40 +23,40 @@ gpgcheck=1 gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public EOF -RUN microdnf update && \ - microdnf install -y \ - cmake \ - cyrus-sasl-devel \ - # diff is required by maven during the build of hbase \ - # Cannot run program "diff" (in directory "/stackable/hbase-2.4.12-src/hbase-shaded/hbase-shaded-check-invariants" - diffutils \ - fuse-devel \ - gcc \ - gcc-c++ \ - # The GNU gettext utilities contain the envsubst program which - # substitutes the values of environment variables. - gettext \ - # For the apply_patches.sh script - git \ - # Needed by the maven ant run plugin for the "set-hostname-property" step in zookeeper - hostname \ - # Needed for compiling Java projects - "temurin-${PRODUCT}-jdk" \ - krb5-devel \ - libcurl-devel \ - make \ - maven \ - openssl-devel \ - # Required to unpack Omid tarball - tar \ - wget \ - which \ - xz \ - zlib-devel \ - # Required for log4shell.sh - unzip zip && \ - microdnf clean all && \ - rm -rf /var/cache/yum +RUN < /dev/null; then - echo "unzip not found. unzip is required to run this script." - exit 1 -fi - -if ! command -v zgrep &> /dev/null; then - echo "zgrep not found. zgrep is required to run this script." - exit 1 -fi - -if ! command -v zip &> /dev/null; then - echo "zip not found. zip is required to run this script." - exit 1 -fi - -for targetdir in ${1} -do - echo "Removing JNDI from jar files in $targetdir" - delete_jndi_from_jar_files "$targetdir" -done - -for targetdir in ${1} -do - echo "Removing JNDI from tar.gz files in $targetdir" - # shellcheck disable=SC2044 # the local function is not available when using find with -exec - for targzfile in $(find "$targetdir" -name '*.tar.gz') ; do - delete_jndi_from_targz_file "$targzfile" - done -done - -echo "Run successful" diff --git a/shared/log4shell_1.6.1-log4shell_Linux_aarch64 b/shared/log4shell_1.6.1-log4shell_Linux_aarch64 deleted file mode 100755 index 2726de411..000000000 Binary files a/shared/log4shell_1.6.1-log4shell_Linux_aarch64 and /dev/null differ diff --git a/shared/log4shell_1.6.1-log4shell_Linux_x86_64 b/shared/log4shell_1.6.1-log4shell_Linux_x86_64 deleted file mode 100755 index c5897f357..000000000 Binary files a/shared/log4shell_1.6.1-log4shell_Linux_x86_64 and /dev/null differ diff --git a/shared/log4shell_scanner b/shared/log4shell_scanner deleted file mode 100755 index 1fa82e653..000000000 --- a/shared/log4shell_scanner +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -ARCH="$(uname --machine)" -/bin/log4shell_scanner_"$ARCH" "$@" diff --git a/testing-tools/Dockerfile b/testing-tools/Dockerfile index 21c0f4dde..b9a43e35f 100644 --- a/testing-tools/Dockerfile +++ b/testing-tools/Dockerfile @@ -10,6 +10,9 @@ FROM python:3.12-slim-bullseye@sha256:229b2897e6b5c630d83a721e42dd1c96e3ec996323 ARG PRODUCT ARG RELEASE ARG KEYCLOAK_VERSION +ARG STACKABLE_USER_UID +ARG STACKABLE_USER_GID +ARG STACKABLE_USER_NAME LABEL name="Stackable Testing Tools" \ maintainer="info@stackable.tech" \ @@ -25,49 +28,55 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"] # This is needed so that krb5-user installs without prompting for a realm. ENV DEBIAN_FRONTEND=noninteractive -# krb5-user/libkrb5-dev are needed for Kerberos support. -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - build-essential \ - ca-certificates \ - curl \ - gzip \ - jq \ - krb5-user \ - kubernetes-client \ - libkrb5-dev \ - libssl-dev \ - libxml2-dev \ - libxslt1-dev \ - pkg-config \ - python3-certifi \ - python3-idna \ - python3-semver \ - python3-thrift \ - python3-toml \ - python3-urllib3 \ - tar \ - zip \ - unzip \ - # Java 11 seems like the best middle-ground for all tools - openjdk-11-jdk-headless && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* COPY testing-tools/python /stackable/python COPY testing-tools/licenses /licenses -ENV PATH=/stackable/keycloak/bin:$PATH -RUN curl --fail -L https://repo.stackable.tech/repository/packages/keycloak/keycloak-${KEYCLOAK_VERSION}.tar.gz | tar -xzC /stackable && \ - ln -s /stackable/keycloak-${KEYCLOAK_VERSION} /stackable/keycloak -RUN pip install --no-cache-dir --upgrade pip && \ - pip install --no-cache-dir -r /stackable/python/requirements.txt && \ - groupadd -r stackable --gid=1000 && \ - useradd -r -g stackable --uid=1000 stackable && \ - chown -R stackable:stackable /stackable +RUN <