summaryrefslogtreecommitdiff
path: root/os/platforms/v1/Dockerfile.part
diff options
context:
space:
mode:
Diffstat (limited to 'os/platforms/v1/Dockerfile.part')
-rw-r--r--os/platforms/v1/Dockerfile.part48
1 files changed, 2 insertions, 46 deletions
diff --git a/os/platforms/v1/Dockerfile.part b/os/platforms/v1/Dockerfile.part
index 2c6b1557..77be104f 100644
--- a/os/platforms/v1/Dockerfile.part
+++ b/os/platforms/v1/Dockerfile.part
@@ -1,48 +1,4 @@
-RUN pkg-install \
- nginx-mainline \
- apache-tools \
- mjpg-streamer \
- python \
- python-raspberry-gpio \
- customizepkg
-RUN systemctl enable nginx
+COPY stages/pikvm-v1/config.txt /boot/
+COPY stages/pikvm-v1/udev.rules /etc/udev/rules.d/pikvm.rules
-COPY stages/pikvm/customizepkg.nginx /etc/customizepkg.d/nginx-mainline-mod-ndk
-COPY stages/pikvm/customizepkg.nginx /etc/customizepkg.d/nginx-mainline-mod-lua
-RUN env MAKEPKGOPTS="--skipchecksums --skippgpcheck" pkg-install nginx-mainline-mod-lua
-
-ARG KVMD_VERSION
-ENV KVMD_VERSION $KVMD_VERSION
-RUN echo $KVMD_VERSION
-RUN pkg-install kvmd
-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 rm -rf /etc/nginx/* \
- && cp /usr/share/kvmd/configs/nginx/* /etc/nginx/ \
- && sed -i -e "s/^#PROD//g" /etc/nginx/nginx.conf
RUN cp /usr/share/kvmd/configs/kvmd/v1.yaml /etc/kvmd.yaml
-
-ARG WEBUI_ADMIN_PASSWD
-ENV WEBUI_ADMIN_PASSWD $WEBUI_ADMIN_PASSWD
-RUN echo "$WEBUI_ADMIN_PASSWD" | htpasswd -ci /etc/nginx/htpasswd admin
-
-ARG NEW_HTTPS_CERT
-ENV NEW_HTTPS_CERT $NEW_HTTPS_CERT
-RUN echo $NEW_HTTPS_CERT
-RUN mkdir /etc/nginx/ssl \
- && cd /etc/nginx/ssl \
- && openssl req -new -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 3650 \
- -subj "/C=RU/ST=Moscow/L=Moscow/O=Pi-KVM/OU=Pi-KVM/CN=localhost" \
- && chmod 400 server.key \
- && chmod 444 server.crt \
- && chmod 750 /etc/nginx/ssl \
- && chown -R root:http /etc/nginx/ssl