From 5e50cc71420ad20549a365656f80293adc8500a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 2 Jan 2022 17:43:55 +0100 Subject: [PATCH] Improve simulation container --- daemons/simulator/Dockerfile | 2 +- daemons/simulator/README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/daemons/simulator/Dockerfile b/daemons/simulator/Dockerfile index 0833550..da0debf 100644 --- a/daemons/simulator/Dockerfile +++ b/daemons/simulator/Dockerfile @@ -4,4 +4,4 @@ RUN apk update && apk add qemu-system-avr && mkdir /io ADD start.sh /opt/dcc ADD CommandStation-EX-uno-*.elf /io -CMD ["/bin/sh", "/opt/dcc/start.sh"] +ENTRYPOINT ["/opt/dcc/start.sh"] diff --git a/daemons/simulator/README.md b/daemons/simulator/README.md index e387f74..3618f67 100644 --- a/daemons/simulator/README.md +++ b/daemons/simulator/README.md @@ -1,6 +1,8 @@ # AVR Simulator +`qemu-system-avr` tries to use all the CPU cicles (leaving a CPU core stuck at 100%. Limit CPU core usage to 10%. I may be adjusted on slower machines. + ```bash $ podman build -t dcc/net-to-serial:sim . -$ podman run -d -p2560:2560 dcc/net-to-serial:sim +$ podman run --init --cpu 0.1 -d -p 2560:2560 dcc/net-to-serial:sim ```