Enable vnc for emulator

This commit is contained in:
Thomas Lovén 2022-01-04 21:57:47 +01:00
parent e97f614cac
commit 2179aa3ce0
3 changed files with 20 additions and 2 deletions

3
emu
View File

@ -3,6 +3,7 @@
default="qemu-system-x86_64 \
-s -S \
-drive file=/opt/mittos.iso,media=cdrom,cache=none \
-vnc :0 \
-curses \
"
@ -21,5 +22,7 @@ fi
docker-compose -f toolchain/docker-compose.yml run \
--rm \
-e WEBSOCK='1' \
-p 6080:6080 \
--name emul \
run ${cmd}

View File

@ -1,8 +1,16 @@
FROM alpine
FROM debian
RUN apk --update --no-cache add qemu-system-x86_64 qemu-ui-curses gdb && rm -rf /var/cache/apk/*
RUN apt-get update && \
apt-get install -y \
qemu-system-x86 \
gdb \
novnc
ENV MITTOS64 "true"
ENV BUILDROOT "/opt"
COPY run-entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
WORKDIR "/opt"

7
toolchain/run-entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [[ -n "$WEBSOCK" ]]; then
websockify --web /usr/share/novnc 6080 localhost:5900 &
fi
eval "$@"