Skip to content

Commit 33df974

Browse files
authored
Merge branch 'kubeflow:master' into migrate-images-to-ghcr
2 parents e2d8be2 + 44941a1 commit 33df974

8 files changed

+32
-16
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
run: make test
3333
e2e:
3434
name: E2E
35-
runs-on: ubuntu-latest
35+
runs-on:
36+
labels: ubuntu-latest-16-cores
3637
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
3738
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
3839
strategy:

.github/workflows/mpi-operator-docker-image-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ env:
1515

1616
jobs:
1717
build-push-docker-image:
18-
runs-on: ubuntu-latest
18+
runs-on:
19+
labels: ubuntu-latest-16-cores
1920
steps:
2021
- name: Checkout
2122
uses: actions/checkout@v3

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,22 @@ images:
105105
.PHONY: test_images
106106
test_images:
107107
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg port=${BASE_IMAGE_SSH_PORT} -t ${REGISTRY}/base:${RELEASE_VERSION} build/base
108+
$(MAKE) -j3 test_images_openmpi test_images_intel test_images_mpich
109+
110+
.PHONY: test_images_openmpi
111+
test_images_openmpi:
108112
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/openmpi:${RELEASE_VERSION} build/base -f build/base/openmpi.Dockerfile
109113
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) -t ${REGISTRY}/openmpi-builder:${RELEASE_VERSION} build/base -f build/base/openmpi-builder.Dockerfile
110114
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-openmpi examples/v2beta1/pi
115+
116+
.PTHONY: test_images_intel
117+
test_images_intel:
111118
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/intel:${RELEASE_VERSION} build/base -f build/base/intel.Dockerfile
112119
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) -t ${REGISTRY}/intel-builder:${RELEASE_VERSION} build/base -f build/base/intel-builder.Dockerfile
113120
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-intel examples/v2beta1/pi -f examples/v2beta1/pi/intel.Dockerfile
121+
122+
.PHOTNY: test_images_mpich
123+
test_images_mpich:
114124
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpich:${RELEASE_VERSION} build/base -f build/base/mpich.Dockerfile
115125
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) -t ${REGISTRY}/mpich-builder:${RELEASE_VERSION} build/base -f build/base/mpich-builder.Dockerfile
116126
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-mpich examples/v2beta1/pi -f examples/v2beta1/pi/mpich.Dockerfile

build/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bookworm
1+
FROM debian:trixie
22

33
ARG port=2222
44

build/base/intel-builder.Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@ FROM bash AS downloader
22

33
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB -O key.PUB
44

5-
FROM debian:bookworm
5+
FROM debian:trixie
66

77
COPY --from=downloader key.PUB /tmp/key.PUB
88

99
# Install Intel oneAPI keys.
1010
RUN apt update \
11-
&& apt install -y --no-install-recommends gnupg2 ca-certificates \
12-
&& apt-key add /tmp/key.PUB \
11+
&& apt install -y --no-install-recommends gnupg2 ca-certificates apt-transport-https \
12+
&& gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg /tmp/key.PUB \
1313
&& rm /tmp/key.PUB \
14-
&& echo "deb https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list \
15-
&& apt remove -y gnupg2 ca-certificates \
16-
&& apt autoremove -y \
14+
# TODO (tenzen-y): Once Intel OneAPI supports new parsable PGP format for apt, we should remove `trusted=yes` option.
15+
# REF: https://github.com/kubeflow/mpi-operator/issues/691
16+
&& echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg trusted=yes] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list \
1717
&& apt update \
1818
&& apt install -y --no-install-recommends \
1919
libstdc++-12-dev binutils procps clang \
2020
intel-oneapi-compiler-dpcpp-cpp \
2121
intel-oneapi-mpi-devel-2021.13 \
22+
&& apt remove -y gnupg2 ca-certificates apt-transport-https \
23+
&& apt autoremove -y \
2224
&& rm -rf /var/lib/apt/lists/*
2325

2426
ENV I_MPI_CC=clang I_MPI_CXX=clang++

build/base/intel.Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ COPY --from=downloader key.PUB /tmp/key.PUB
1010

1111
# Install Intel oneAPI keys.
1212
RUN apt update \
13-
&& apt install -y --no-install-recommends gnupg2 ca-certificates \
14-
&& apt-key add /tmp/key.PUB \
13+
&& apt install -y --no-install-recommends gnupg2 ca-certificates apt-transport-https \
14+
&& gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg /tmp/key.PUB \
1515
&& rm /tmp/key.PUB \
16-
&& echo "deb https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list \
17-
&& apt remove -y gnupg2 ca-certificates \
18-
&& apt autoremove -y \
16+
# TODO (tenzen-y): Once Intel OneAPI supports new parsable PGP format for apt, we should remove `trusted=yes` option.
17+
# REF: https://github.com/kubeflow/mpi-operator/issues/691
18+
&& echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg trusted=yes] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list \
1919
&& apt update \
2020
&& apt install -y --no-install-recommends \
2121
dnsutils \
2222
intel-oneapi-mpi-2021.13 \
23+
&& apt remove -y gnupg2 ca-certificates \
24+
&& apt autoremove -y \
2325
&& rm -rf /var/lib/apt/lists/*
2426

2527
COPY entrypoint.sh /entrypoint.sh

build/base/mpich-builder.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bookworm as builder
1+
FROM debian:trixie as builder
22

33
RUN apt update \
44
&& apt install -y --no-install-recommends \

build/base/openmpi-builder.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bookworm as builder
1+
FROM debian:trixie as builder
22

33
RUN apt update \
44
&& apt install -y --no-install-recommends \

0 commit comments

Comments
 (0)