Improve simulation container

This commit is contained in:
2022-01-02 17:43:55 +01:00
parent ad86a39219
commit 5e50cc7142
2 changed files with 4 additions and 2 deletions

View File

@@ -4,4 +4,4 @@ RUN apk update && apk add qemu-system-avr && mkdir /io
ADD start.sh /opt/dcc ADD start.sh /opt/dcc
ADD CommandStation-EX-uno-*.elf /io ADD CommandStation-EX-uno-*.elf /io
CMD ["/bin/sh", "/opt/dcc/start.sh"] ENTRYPOINT ["/opt/dcc/start.sh"]

View File

@@ -1,6 +1,8 @@
# AVR Simulator # 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 ```bash
$ podman build -t dcc/net-to-serial:sim . $ 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
``` ```