Skip to content

fix(docker): support arm64 hosts for development#2098

Merged
tomudding merged 1 commit into
GEWIS:mainfrom
tomudding:fix/dev-environment-on-arm
May 31, 2026
Merged

fix(docker): support arm64 hosts for development#2098
tomudding merged 1 commit into
GEWIS:mainfrom
tomudding:fix/dev-environment-on-arm

Conversation

@tomudding

Copy link
Copy Markdown
Member

Description

Select the dart-sass and swc binaries based on BuildKit's TARGETARCH so arm64 hosts (e.g. Apple Silicon) get native binaries instead of linux-x64 ones that may fail under emulation during sass:build and asset-map:compile.

Also fixed an issue when the GID passed from the host already exists by reusing the existing group.

Related issues/external references

Fixes GH-2095.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

Select the `dart-sass` and `swc` binaries based on BuildKit's `TARGETARCH` so
arm64 hosts (e.g. Apple Silicon) get native binaries instead of linux-x64 ones
that may fail under emulation during `sass:build` and `asset-map:compile`.

Also fixed an issue when the GID passed from the host already exists by reusing
the existing group.

Fixes GEWISGH-2095.
@tomudding tomudding requested a review from JustSamuel May 29, 2026 10:14

@JustSamuel JustSamuel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm

@tomudding tomudding merged commit 041692b into GEWIS:main May 31, 2026
6 checks passed
@tomudding tomudding deleted the fix/dev-environment-on-arm branch May 31, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First-time Docker setup fails on Apple Silicon (arm64)

2 participants