diff --git a/packages/cubejs-docker/dev.Dockerfile b/packages/cubejs-docker/dev.Dockerfile index 6347ebd1d6fb2..0b62dce40f5a4 100644 --- a/packages/cubejs-docker/dev.Dockerfile +++ b/packages/cubejs-docker/dev.Dockerfile @@ -8,9 +8,10 @@ ENV CI=0 RUN DEBIAN_FRONTEND=noninteractive \ && apt-get update \ - # python3 package is necessary to install `python3` executable for node-gyp && apt-get install -y --no-install-recommends libssl3t64 curl \ - cmake python3 python3.13 libpython3.13-dev gcc g++ make cmake openjdk-21-jdk-headless \ + cmake python3.13 libpython3.13-dev gcc g++ make cmake openjdk-21-jdk-headless \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* ENV RUSTUP_HOME=/usr/local/rustup @@ -172,6 +173,8 @@ FROM base AS final ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y ca-certificates python3.13 libpython3.13-dev \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && apt-get clean COPY --from=build /cubejs . diff --git a/packages/cubejs-docker/latest-debian-jdk.Dockerfile b/packages/cubejs-docker/latest-debian-jdk.Dockerfile index 84d1e215463ea..88ea9665ad4cf 100644 --- a/packages/cubejs-docker/latest-debian-jdk.Dockerfile +++ b/packages/cubejs-docker/latest-debian-jdk.Dockerfile @@ -10,9 +10,10 @@ RUN yarn config set network-timeout 120000 -g # Required for node-oracledb to buld on ARM64 RUN apt-get update \ - # python3 package is necessary to install `python3` executable for node-gyp # libpython3-dev is needed to trigger post-installer to download native with python - && apt-get install -y python3 python3.13 libpython3.13-dev gcc g++ make cmake openjdk-21-jdk-headless \ + && apt-get install -y python3.13 libpython3.13-dev gcc g++ make cmake openjdk-21-jdk-headless \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* # We are copying root yarn.lock file to the context folder during the Publish GH @@ -33,6 +34,8 @@ RUN groupadd cube && useradd -ms /bin/bash -g cube cube \ && DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -y --no-install-recommends libssl3t64 openjdk-21-jre-headless python3.13 libpython3.13-dev \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* \ && mkdir cube \ && chown -R cube:cube /tmp /cube /usr diff --git a/packages/cubejs-docker/latest.Dockerfile b/packages/cubejs-docker/latest.Dockerfile index 937f741e93d41..24948df956905 100644 --- a/packages/cubejs-docker/latest.Dockerfile +++ b/packages/cubejs-docker/latest.Dockerfile @@ -9,9 +9,10 @@ RUN yarn config set network-timeout 120000 -g # Required for node-oracledb to buld on ARM64 RUN apt-get update \ - # python3 package is necessary to install `python3` executable for node-gyp # libpython3-dev is needed to trigger post-installer to download native with python - && apt-get install -y python3 python3.13 libpython3.13-dev gcc g++ make cmake ca-certificates \ + && apt-get install -y python3.13 libpython3.13-dev gcc g++ make cmake ca-certificates \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* # We are copying root yarn.lock file to the context folder during the Publish GH @@ -31,6 +32,8 @@ ENV CUBEJS_DOCKER_IMAGE_TAG=latest RUN DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -y --no-install-recommends libssl3t64 python3.13 libpython3.13-dev \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* RUN yarn policies set-version v1.22.22 diff --git a/packages/cubejs-docker/local.Dockerfile b/packages/cubejs-docker/local.Dockerfile index f37dd1a5893e7..69c3fcdf7ce0d 100644 --- a/packages/cubejs-docker/local.Dockerfile +++ b/packages/cubejs-docker/local.Dockerfile @@ -10,8 +10,9 @@ ENV CUBEJS_DOCKER_IMAGE_TAG=latest RUN DEBIAN_FRONTEND=noninteractive \ && apt-get update \ - # python3 package is necessary to install `python3` executable for node-gyp - && apt-get install -y --no-install-recommends libssl3t64 python3 python3.13 libpython3.13-dev ca-certificates \ + && apt-get install -y --no-install-recommends libssl3t64 python3.13 libpython3.13-dev ca-certificates \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* ENV NODE_ENV=production diff --git a/packages/cubejs-docker/testing-drivers.Dockerfile b/packages/cubejs-docker/testing-drivers.Dockerfile index 98f428f5d3511..a75285a0c1820 100644 --- a/packages/cubejs-docker/testing-drivers.Dockerfile +++ b/packages/cubejs-docker/testing-drivers.Dockerfile @@ -13,7 +13,9 @@ ENV CI=0 RUN DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -y --no-install-recommends libssl3t64 curl \ - cmake python3 gcc g++ make cmake openjdk-21-jdk-headless unzip \ + cmake python3.13 gcc g++ make cmake openjdk-21-jdk-headless unzip \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && rm -rf /var/lib/apt/lists/* ENV CUBESTORE_SKIP_POST_INSTALL=true @@ -168,6 +170,8 @@ FROM base AS final ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y ca-certificates python3.13 libpython3.13-dev \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \ + && update-alternatives --install /usr/bin/python python /usr/bin/python3.13 1 \ && apt-get clean COPY --from=build /cubejs .