update Dockerfile with sillyfrog changes

This commit is contained in:
seanauff 2020-04-03 12:19:11 -04:00
parent eb4ba922a5
commit a5b2cc59e3
1 changed files with 19 additions and 10 deletions

View File

@ -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 \ cmake \
libjpeg62-turbo-dev \
g++ \ g++ \
wget \ wget \
unzip \ unzip \
psmisc psmisc \
git \
python-virtualenv \
virtualenv \
python-dev \
libffi-dev \
build-essential
EXPOSE 5000 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/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip \
https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip \ https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip \
https://github.com/birkbjo/OctoPrint-Themeify/archive/master.zip \ https://github.com/birkbjo/OctoPrint-Themeify/archive/master.zip \
https://github.com/jneilliii/OctoPrint-Python3PluginCompatibilityCheck/archive/master.zip https://github.com/jneilliii/OctoPrint-Python3PluginCompatibilityCheck/archive/master.zip \
https://github.com/imrahil/OctoPrint-PrintHistory/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
VOLUME /home/octoprint/.octoprint VOLUME /home/octoprint/.octoprint
@ -48,22 +51,28 @@ VOLUME /home/octoprint/.octoprint
USER root USER root
RUN apt-get install -y sudo RUN apt install -y sudo
COPY klippy.sudoers /etc/sudoers.d/klippy COPY klippy.sudoers /etc/sudoers.d/klippy
RUN useradd -ms /bin/bash 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 USER octoprint
WORKDIR /home/octoprint WORKDIR /home/octoprint
RUN git clone https://github.com/KevinOConnor/klipper RUN git clone https://github.com/KevinOConnor/klipper
RUN ./klipper/scripts/install-octopi.sh RUN ./klipper/scripts/install-ubuntu-18.04.sh
USER root USER root
# Clean up hack for install script
RUN rm -f /bin/systemctl
COPY start.py / COPY start.py /
COPY runklipper.py / COPY runklipper.py /