From a5b2cc59e397c5b298815b2e94c1dc92772ad4c7 Mon Sep 17 00:00:00 2001 From: seanauff Date: Fri, 3 Apr 2020 12:19:11 -0400 Subject: [PATCH] update Dockerfile with sillyfrog changes --- Dockerfile | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index a665952..a86b8d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,18 @@ -FROM python:2.7 +FROM ubuntu:18.04 -RUN apt-get update && apt-get install -y \ +RUN apt update && apt install -y \ cmake \ - libjpeg62-turbo-dev \ g++ \ wget \ unzip \ - psmisc + psmisc \ + git \ + python-virtualenv \ + virtualenv \ + python-dev \ + libffi-dev \ + build-essential EXPOSE 5000 @@ -37,10 +42,8 @@ https://github.com/jneilliii/OctoPrint-TabOrder/archive/master.zip \ https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip \ https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip \ https://github.com/birkbjo/OctoPrint-Themeify/archive/master.zip \ -https://github.com/jneilliii/OctoPrint-Python3PluginCompatibilityCheck/archive/master.zip - -# Installing from sillyfrog until the PR is merged to master -RUN /opt/octoprint/venv/bin/python -m pip install https://github.com/sillyfrog/OctoPrint-PrintHistory/archive/master.zip +https://github.com/jneilliii/OctoPrint-Python3PluginCompatibilityCheck/archive/master.zip \ +https://github.com/imrahil/OctoPrint-PrintHistory/archive/master.zip VOLUME /home/octoprint/.octoprint @@ -48,22 +51,28 @@ VOLUME /home/octoprint/.octoprint USER root -RUN apt-get install -y sudo +RUN apt install -y sudo COPY klippy.sudoers /etc/sudoers.d/klippy RUN useradd -ms /bin/bash klippy +# This is to allow the install script to run without error +RUN ln -s /bin/true /bin/systemctl + USER octoprint WORKDIR /home/octoprint RUN git clone https://github.com/KevinOConnor/klipper -RUN ./klipper/scripts/install-octopi.sh +RUN ./klipper/scripts/install-ubuntu-18.04.sh USER root +# Clean up hack for install script +RUN rm -f /bin/systemctl + COPY start.py / COPY runklipper.py /