summaryrefslogtreecommitdiff
path: root/os/platforms/v1/Dockerfile.part
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-10 00:16:03 +0300
committerDevaev Maxim <[email protected]>2018-08-10 00:16:03 +0300
commit96e64d79888784f2a8999473f826f10ac2f302ba (patch)
treee29eb9563c193653bb96f073543ca5393d923aa8 /os/platforms/v1/Dockerfile.part
parent1d21ab6bcb4cb41265064287cc44bcea3ef379a3 (diff)
password auth for webui
Diffstat (limited to 'os/platforms/v1/Dockerfile.part')
-rw-r--r--os/platforms/v1/Dockerfile.part3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/platforms/v1/Dockerfile.part b/os/platforms/v1/Dockerfile.part
index 73fb762e..0e9443a3 100644
--- a/os/platforms/v1/Dockerfile.part
+++ b/os/platforms/v1/Dockerfile.part
@@ -1,5 +1,6 @@
RUN pkg-install \
nginx \
+ apache-tools \
mjpg-streamer-pikvm \
python \
python-raspberry-gpio
@@ -14,12 +15,14 @@ RUN systemctl enable kvmd
COPY stages/pikvm/config.txt /boot/
COPY stages/pikvm/sysctl.conf /etc/sysctl.d/99-pikvm.conf
COPY stages/pikvm/udev.rules /etc/udev/rules.d/pikvm.rules
+COPY stages/pikvm/motd /etc/
RUN sed -i -e "s/console=ttyAMA0\,115200//g" /boot/cmdline.txt \
&& sed -i -e "s/kgdboc=ttyAMA0\,115200//g" /boot/cmdline.txt
RUN systemctl mask [email protected]
RUN sed -e "s/^#PROD//g" /usr/share/kvmd/configs/nginx/nginx.conf.example > /etc/nginx/nginx.conf
+RUN echo "admin:admin" > /etc/nginx/htpasswd
RUN cp /usr/share/kvmd/configs/kvmd/v1.yaml /etc/kvmd.yaml
ARG NEW_HTTPS_CERT