From 3e7fdae5f4f7cdd932ae640cb39658922886f6fb Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Thu, 28 Aug 2025 13:41:16 +0200 Subject: [PATCH 1/3] Multi platform docker image --- .github/workflows/ci.yml | 10 +++++++++- slim/Dockerfile | 7 +++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db01dbd..a6461fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,9 +107,17 @@ jobs: # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: + platforms: linux/amd64,linux/arm64 context: slim push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/slim/Dockerfile b/slim/Dockerfile index ebb1347..f8bb6a9 100644 --- a/slim/Dockerfile +++ b/slim/Dockerfile @@ -1,9 +1,10 @@ -FROM --platform=linux/amd64 rust:1.89-slim-bookworm +FROM rust:1.89-slim-bookworm ENV NVM_DIR=/root/.nvm ENV NVM_VERSION=v0.40.1 ENV NODE_VERSION=22.10.0 ENV IC_MOPS_VERSION=1.11.1 +ENV CANDID_EXTRACTOR_VERSION=0.1.6 RUN apt -yq update RUN apt -yqq install --no-install-recommends curl ca-certificates libunwind-dev git @@ -26,9 +27,7 @@ ENV PATH="/root/.local/share/dfx/bin:$PATH" RUN rustup target add wasm32-unknown-unknown # Install candid-extractor -RUN curl -fsSL https://github.com/dfinity/candid-extractor/releases/download/0.1.6/candid-extractor-x86_64-unknown-linux-gnu.tar.gz -o candid-extractor.tar.gz -RUN tar -xvf candid-extractor.tar.gz && rm candid-extractor.tar.gz -RUN mv candid-extractor /usr/local/bin +RUN cargo install candid-extractor --version ${CANDID_EXTRACTOR_VERSION} # Clean apt RUN apt-get autoremove && apt-get clean From f3f056878a887e9fc2205de7ae1675a23a627b11 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Thu, 28 Aug 2025 14:08:24 +0200 Subject: [PATCH 2/3] Move CODEOWNERS --- CODEOWNERS => .github/CODEOWNERS | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CODEOWNERS => .github/CODEOWNERS (100%) diff --git a/CODEOWNERS b/.github/CODEOWNERS similarity index 100% rename from CODEOWNERS rename to .github/CODEOWNERS From 8005090d6f905c71184e3c524285c55c59add2a6 Mon Sep 17 00:00:00 2001 From: Elias Datler Date: Thu, 28 Aug 2025 14:09:26 +0200 Subject: [PATCH 3/3] Change CODEOWNERS --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 86b3b15..bdd091b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -** @dfinity/testing-verification @dfinity/sdk \ No newline at end of file +** @dfinity/ninja-devs @dfinity/sdk \ No newline at end of file