From 629619b74ceb92d9e65d5f6fdd58754c66e73b7e Mon Sep 17 00:00:00 2001 From: Nils Dijk Date: Tue, 28 Jan 2025 23:14:15 +0100 Subject: [PATCH] support devcontainer on macbook m-series due to package discrepancies we need to install an extra python-dev package for python3.9. Once we can build the image we would like to have the images built by github actions as well. --- .devcontainer/Dockerfile | 1 + .github/workflows/devcontainer.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 9c0b011f0d3..5805a3689d0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -35,6 +35,7 @@ RUN apt update && apt install -y \ zlib1g-dev \ && add-apt-repository ppa:deadsnakes/ppa -y \ && apt install -y \ + python3.9-dev \ python3.9-full \ # software properties pulls in pkexec, which makes the debugger unusable in vscode && apt purge -y \ diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index dd5d506e4cf..669732d5809 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -27,6 +27,9 @@ jobs: tags: | type=ref,event=branch type=sha + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -41,6 +44,7 @@ jobs: name: Build and push uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64 context: "{{defaultContext}}:.devcontainer" push: true tags: ${{ steps.meta.outputs.tags }}