quirrel-dev / quirrel

The Task Queueing Solution for Serverless.
https://quirrel.dev
MIT License
896 stars 66 forks source link

Docker container crashes on M1 computers #787

Open babasbot opened 3 years ago

babasbot commented 3 years ago

Bug Report

Intel-based containers on Apple Silicon machines under emulation can crash as qemu sometimes fails to run the container.

Current Behavior

The container crashes on start.

quirrel  | #
quirrel  | # Fatal process OOM in Failed to reserve virtual memory for CodeRange
quirrel  | #
quirrel  |
quirrel  | qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
quirrel  | Trace/breakpoint trap
quirrel exited with code 133

Expected behavior/code

The container should start

Environment

Possible Solution

Distribute an additional Docker image based on amd64/node:lts for Apple M1 users. I propose using the tag :m1-sha-1038e25.

-FROM node:16
+FROM amd64/node:lts

Additional context/Screenshots

Skn0tt commented 3 years ago

Hi @babasbot! Thanks for this very thorough report. I'm looking into it in #788 :)