Skip to content

Commit

Permalink
Use bookworm based images for all containers (#81)
Browse files Browse the repository at this point in the history
* moonraker: update to bookworm based images
* klipperscreen: upgrade to bookworm base images
* ustreamer: upgrade to bookworm base images
* klipper: upgrade to bookworm base images and use python3
  • Loading branch information
mkuf authored Jun 22, 2023
1 parent 202fedd commit 34c560a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions docker/klipper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Get Klipper Source and Build venv
##
FROM python:2 as build
FROM python:3-bookworm as build

ARG REPO=https://github.com/Klipper3d/klipper
ARG VERSION=master
Expand All @@ -12,7 +12,7 @@ RUN git clone ${REPO} klipper \
&& git checkout ${VERSION} \
&& rm -rf .git

RUN virtualenv -p python2 venv \
RUN python -m venv venv \
&& venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \
&& venv/bin/pip install numpy \
&& venv/bin/python -m compileall klipper/klippy \
Expand All @@ -22,7 +22,7 @@ RUN virtualenv -p python2 venv \

## Klippy Runtime Image
##
FROM python:2-slim as run
FROM python:3-slim-bookworm as run

WORKDIR /opt
RUN groupadd klipper --gid 1000 \
Expand All @@ -44,14 +44,14 @@ CMD ["-I", "printer_data/run/klipper.tty", "-a", "printer_data/run/klipper.sock"

## Image for building MCU code including other tooling
##
FROM debian:bullseye as tools
FROM debian:bookworm as tools

WORKDIR /opt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt install -y \
sudo \
virtualenv python-dev libffi-dev build-essential pkg-config\
virtualenv python3-dev libffi-dev build-essential pkg-config\
libncurses-dev \
avrdude gcc-avr binutils-avr avr-libc \
stm32flash dfu-util libnewlib-arm-none-eabi \
Expand All @@ -78,7 +78,7 @@ RUN cd klipper \

## Runtime image for the klipper_mcu binary
##
FROM debian:bullseye-slim as hostmcu
FROM debian:bookworm-slim as hostmcu

RUN apt update \
&& apt install -y gpiod \
Expand Down
4 changes: 2 additions & 2 deletions docker/klipperscreen/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3 as build
FROM python:3-bookworm as build

ARG REPO=https://github.com/jordanruthe/KlipperScreen
ARG VERSION=master
Expand All @@ -18,7 +18,7 @@ RUN git clone ${REPO} klipperscreen \
RUN python -m venv venv \
&& venv/bin/pip install -r klipperscreen/scripts/KlipperScreen-requirements.txt

FROM python:3-slim as run
FROM python:3-slim-bookworm as run

RUN apt update \
&& apt install -y \
Expand Down
8 changes: 4 additions & 4 deletions docker/moonraker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Get Code and Build venv
FROM python:3-bullseye as build
FROM python:3-bookworm as build

ARG REPO=https://github.com/Arksine/moonraker
ARG VERSION=master
Expand All @@ -15,19 +15,19 @@ RUN python -m venv venv \
&& venv/bin/pip install -r moonraker/scripts/moonraker-requirements.txt

## Runtime Image
FROM python:3-slim-bullseye as run
FROM python:3-slim-bookworm as run

RUN apt update \
&& apt install -y \
libopenjp2-7 \
python3-libgpiod \
curl \
libcurl4 \
libssl1.1 \
libssl3 \
liblmdb0 \
libsodium23 \
libjpeg62-turbo \
libtiff5 \
libtiff6 \
libxcb1 \
zlib1g \
iproute2 \
Expand Down
4 changes: 2 additions & 2 deletions docker/ustreamer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Get Code and make
FROM debian:bullseye-slim as build
FROM debian:bookworm-slim as build

ARG REPO=https://github.com/pikvm/ustreamer
ARG VERSION=master
Expand Down Expand Up @@ -27,7 +27,7 @@ RUN cd ustreamer \
&& make

## Runtime Image
FROM debian:bullseye-slim as run
FROM debian:bookworm-slim as run

RUN apt update \
&& apt install -y \
Expand Down

0 comments on commit 34c560a

Please sign in to comment.