Skip to content

Commit

Permalink
Merge pull request #160 from kpcyrd/debian-worker
Browse files Browse the repository at this point in the history
README: Update Debian status and worker docker image
  • Loading branch information
kpcyrd authored Dec 15, 2024
2 parents 39fa3c3 + be1f8fe commit 578b5a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ afford to.
| | Status | Docker | Doesn't need --privileged | Doesn't need /dev/kvm | Backend |
| --- | --- | --- | --- | --- | --- |
| **Arch Linux** | ✔️ supported || - | ✔️ | [archlinux-repro](https://github.com/archlinux/archlinux-repro) |
| **Debian** | 🚀 experimental | ✔️ || ✔️ | [debrebuild.py](https://github.com/fepitre/debrebuild) |
| **Debian** | ✔️ supported | ✔️ (not working yet) || ✔️ | [debrebuild](https://salsa.debian.org/debian/devscripts/-/blob/main/scripts/debrebuild.pl) |
| **Tails** | 🚀 experimental || - || [docs](https://tails.boum.org/contribute/build/) ([script](worker/rebuilder-tails.sh)) |
| **Alpine** | ✨ planned | - | - | - | - |

Expand Down
13 changes: 3 additions & 10 deletions worker/Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:bullseye
FROM rust:bookworm
WORKDIR /usr/src/rebuilderd
COPY . .
RUN --mount=type=cache,target=/var/cache/buildkit \
Expand All @@ -7,15 +7,8 @@ RUN --mount=type=cache,target=/var/cache/buildkit \
cargo build --release --locked -p rebuilderd-worker && \
cp -v /var/cache/buildkit/debian/target/release/rebuilderd-worker /

FROM debian:bullseye
RUN apt-get update && apt install -y git mmdebstrap diffoscope \
python3-apt python3-dateutil python3-requests python3-rstr python3-setuptools python3-httpx python3-tenacity \
debian-keyring debian-archive-keyring debian-ports-archive-keyring
# this is a temporary solution
# copied from https://github.com/fepitre/package-rebuilder/blob/fc38df2f6e81ae6307e47cf515caa3e92ec8f5a4/rebuilder.Dockerfile
RUN git clone https://salsa.debian.org/python-debian-team/python-debian /opt/python-debian
RUN cd /opt/python-debian && git checkout e28d7a5729b187cfd0ec95da25030224cd10021a && python3 setup.py build install
RUN git clone --depth=1 'https://github.com/fepitre/debrebuild' /debrebuild
FROM debian:trixie
RUN apt-get update && apt install -y apt-utils debian-keyring devscripts diffoscope dpkg-dev mmdebstrap sbuild uidmap
COPY --from=0 \
/usr/src/rebuilderd/worker/rebuilder-debian.sh \
/usr/local/libexec/rebuilderd/
Expand Down

0 comments on commit 578b5a8

Please sign in to comment.