-
Notifications
You must be signed in to change notification settings - Fork 87
/
Dockerfile
20 lines (16 loc) · 706 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM voidlinux/voidlinux
MAINTAINER Andrea Brancaleoni "[email protected]"
RUN xbps-install -Syyu &&\
mkdir -p /run/runit/runsvdir/current &&\
xbps-install -Syu socklog-void &&\
ln -s /etc/sv/socklog-unix /var/service/ &&\
mkdir /etc/sv/socklog-forward &&\
printf "#!/bin/sh\ntail -F -n0 /var/log/socklog/everything/current" > /etc/sv/socklog-forward/run &&\
chmod +x /etc/sv/socklog-forward/run &&\
ln -s /etc/sv/socklog-forward /var/service &&\
ln -s /etc/sv /etc/service
RUN xbps-install -Syyu qemu && mkdir -p /etc/sv/qemu /usr/lib/qemu/ && ln -s /etc/sv/qemu /var/service
ADD enoch_rev2839_boot /usr/lib/qemu/
ADD boot.sh /etc/sv/qemu/run
EXPOSE 2222 5800 5900
CMD runsvdir -P /var/service