Skip to content

Docker frontend build runs as amd64#270

Merged
jhillyerd merged 1 commit intomainfrom
x86-frontend
Apr 23, 2022
Merged

Docker frontend build runs as amd64#270
jhillyerd merged 1 commit intomainfrom
x86-frontend

Conversation

@jhillyerd
Copy link
Copy Markdown
Collaborator

@jhillyerd jhillyerd commented Apr 23, 2022

Our current build downloads the amd64 elm binary and runs it in an arm container. This works on GitHub due to it being an emulated environment, but on a native arm device fails with:

ERROR in ./src/Main.elm
Module build failed (from ./node_modules/elm-webpack-loader/index.js):
Compiler process exited with error Error attempting to run Elm compiler "elm":
Error: spawn Unknown system error -8

Marking the frontend build as amd64 will cause it to execute much faster on GitHub, and resolve issues migrating from webpack to parcel (#260), which is very picky about it's arm environment. Our Dockerfile will continue to fail on native arm devices, but they will still be able to pull our prebuilt images.

@jhillyerd jhillyerd merged commit 58bcd4f into main Apr 23, 2022
@jhillyerd jhillyerd deleted the x86-frontend branch April 23, 2022 17:34
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.

1 participant