diff --git a/core/docker/Dockerfile b/core/docker/Dockerfile index 16947114a48a..ec91f1094a72 100644 --- a/core/docker/Dockerfile +++ b/core/docker/Dockerfile @@ -13,12 +13,8 @@ # FROM eclipse-temurin:17-jdk AS builder -COPY default/apt/sources.list.d /etc/apt/sources.list.d - RUN \ set -xeu && \ - . /etc/os-release && \ - sed -i "s/\${UBUNTU_CODENAME}/${UBUNTU_CODENAME}/g" /etc/apt/sources.list.d/* && \ echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \ echo 'Acquire::http::Timeout "15";' > /etc/apt/apt.conf.d/80-timeouts && \ apt-get update -q && \ @@ -28,12 +24,8 @@ RUN \ FROM eclipse-temurin:17-jdk -COPY default/apt/sources.list.d /etc/apt/sources.list.d - RUN \ set -xeu && \ - . /etc/os-release && \ - sed -i "s/\${UBUNTU_CODENAME}/${UBUNTU_CODENAME}/g" /etc/apt/sources.list.d/* && \ echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \ echo 'Acquire::http::Timeout "15";' > /etc/apt/apt.conf.d/80-timeouts && \ apt-get update -q && \ diff --git a/core/docker/build.sh b/core/docker/build.sh index 0e11502e762c..99b93a33bbc1 100755 --- a/core/docker/build.sh +++ b/core/docker/build.sh @@ -65,15 +65,12 @@ cp "$trino_client" "${WORK_DIR}/" tar -C "${WORK_DIR}" -xzf "${WORK_DIR}/trino-server-${TRINO_VERSION}.tar.gz" rm "${WORK_DIR}/trino-server-${TRINO_VERSION}.tar.gz" cp -R bin "${WORK_DIR}/trino-server-${TRINO_VERSION}" -mkdir -p "${WORK_DIR}/default" -cp -R default/etc "${WORK_DIR}/default/" +cp -R default "${WORK_DIR}/" TAG_PREFIX="trino:${TRINO_VERSION}" for arch in "${ARCHITECTURES[@]}"; do echo "🫙 Building the image for $arch" - mkdir -p "${WORK_DIR}/default/apt/sources.list.d" - cp "default/apt/sources.list.d/mirrors-$arch.sources" "${WORK_DIR}/default/apt/sources.list.d/" docker build \ "${WORK_DIR}" \ --pull \ @@ -81,7 +78,6 @@ for arch in "${ARCHITECTURES[@]}"; do -f Dockerfile \ -t "${TAG_PREFIX}-$arch" \ --build-arg "TRINO_VERSION=${TRINO_VERSION}" - rm -fr "${WORK_DIR}/default/apt/sources.list.d" done echo "🧹 Cleaning up the build context directory" diff --git a/core/docker/default/apt/sources.list.d/mirrors-amd64.sources b/core/docker/default/apt/sources.list.d/mirrors-amd64.sources deleted file mode 100644 index 9fd0eeef7052..000000000000 --- a/core/docker/default/apt/sources.list.d/mirrors-amd64.sources +++ /dev/null @@ -1,6 +0,0 @@ -Enabled: yes -Types: deb -URIs: https://mirrors.ocf.berkeley.edu/ubuntu/ https://mirror.kumi.systems/ubuntu/ -Suites: ${UBUNTU_CODENAME} ${UBUNTU_CODENAME}-updates ${UBUNTU_CODENAME}-backports ${UBUNTU_CODENAME}-security -Components: main restricted universe multiverse -Architectures: amd64 diff --git a/core/docker/default/apt/sources.list.d/mirrors-arm64.sources b/core/docker/default/apt/sources.list.d/mirrors-arm64.sources deleted file mode 100644 index 3f1b0dd9c7f3..000000000000 --- a/core/docker/default/apt/sources.list.d/mirrors-arm64.sources +++ /dev/null @@ -1,6 +0,0 @@ -Enabled: yes -Types: deb -URIs: https://mirrors.ocf.berkeley.edu/ubuntu-ports/ https://mirror.kumi.systems/ubuntu-ports/ -Suites: ${UBUNTU_CODENAME} ${UBUNTU_CODENAME}-updates ${UBUNTU_CODENAME}-backports ${UBUNTU_CODENAME}-security -Components: main restricted universe multiverse -Architectures: arm64 diff --git a/core/docker/default/apt/sources.list.d/mirrors-ppc64le.sources b/core/docker/default/apt/sources.list.d/mirrors-ppc64le.sources deleted file mode 100644 index 4cc866de6b5c..000000000000 --- a/core/docker/default/apt/sources.list.d/mirrors-ppc64le.sources +++ /dev/null @@ -1,7 +0,0 @@ -Enabled: yes -Types: deb -URIs: https://mirrors.ocf.berkeley.edu/ubuntu-ports/ https://mirror.kumi.systems/ubuntu-ports/ -Suites: ${UBUNTU_CODENAME} ${UBUNTU_CODENAME}-updates ${UBUNTU_CODENAME}-backports ${UBUNTU_CODENAME}-security -Components: main restricted universe multiverse -# This is NOT a typo, Ubuntu calls "little endian" architecture "endian little" -Architectures: ppc64el