twodayslate / swift-package-registry

A Swift Package Registry
https://swiftpkg.dev
ISC License
26 stars 6 forks source link

Swift images only work on platform: "linux/amd64" #52

Closed twodayslate closed 2 years ago

twodayslate commented 3 years ago

When testing on my M1 mac swift images do not work in docker unless you specify --platform linux/arm64.

This is easy enough with await docker.createContainer({ Image: docker_tag, Cmd: ['/bin/bash'], AutoRemove: true, Tty: true, platform: "linux/amd64" })

but I can't really test on the live production machine so not sure if it will work there...

twodayslate commented 2 years ago

Added to https://github.com/twodayslate/swift-package-registry/commit/8f048e2e58912188a44d6309d0a055931bfe6334#diff-6260afebd8d1a55e07223a91c109e3a8e9e58909dc50392cecabe25b4a5527b9R171 with no side effects