Last active
May 22, 2020 19:40
-
-
Save raoulbhatia/00141b74cd4b27f95f14ac31a27090b9 to your computer and use it in GitHub Desktop.
BackupPC Debian 10 Buster Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
LABEL maintainer="raoul@bhatia.at" | |
####################################### | |
RUN apt -y update && apt -y install \ | |
sudo \ | |
wget \ | |
git \ | |
build-essential \ | |
fakeroot && \ | |
apt -y clean && apt -y autoremove | |
RUN sudo -i addgroup --system backuppc && \ | |
sudo -i adduser --system --gecos "BackupPC" --ingroup backuppc \ | |
--shell /bin/sh --home /var/lib/backuppc backuppc | |
RUN sudo -i apt -y install debhelper autoconf zlib1g-dev libpopt-dev libacl1-dev libattr1-dev | |
RUN sudo -i apt -y install debhelper autotools-dev | |
RUN sudo -i apt install -y debhelper libtime-parsedate-perl libxml-rss-perl libcgi-pm-perl libarchive-zip-perl | |
RUN sudo -i apt install -y libbackuppc-xs-perl | |
# Build rsync-bpc | |
RUN cd /tmp && git clone https://github.com/raoulbhatia/rsync-bpc rsync-bpc && \ | |
cd rsync-bpc && git checkout 3.0.9.13-DEBIAN && \ | |
fakeroot dpkg-buildpackage -uc -us | |
# No need to build libbackuppc-xs-perl from original source as it is part of Debian, | |
# see https://packages.debian.org/search?keywords=libbackuppc | |
#RUN cd /tmp/ && wget -O libbackuppc-xs-perl_0.58.orig.tar.gz "https://github.com/backuppc/backuppc-xs/releases/download/0.58/BackupPC-XS-0.58.tar.gz" | |
#RUN cd /tmp && git clone https://github.com/raoulbhatia/libbackuppc-xs-perl libbackuppc-xs-perl && \ | |
# cd libbackuppc-xs-perl && git checkout master && \ | |
# fakeroot dpkg-buildpackage -uc -us | |
#RUN dpkg -i /tmp/libbackuppc-xs-perl*.deb | |
RUN cd /tmp && git clone https://github.com/raoulbhatia/backuppc backuppc && \ | |
cd backuppc && git checkout DEBIAN && \ | |
fakeroot dpkg-buildpackage -uc -us |
Actually, i should switch from https://github.com/backuppc/backuppc-xs/ to https://packages.debian.org/search?keywords=libbackuppc
Update the Dockerfile above
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libbackuppc-xs-perl_0.59 has been released.
s/0.58/0.59/g seems to do the trick