Skip to content

Instantly share code, notes, and snippets.

@felag
Forked from raoulbhatia/Dockerfile.debian10
Last active June 19, 2019 16:01
Show Gist options
  • Save felag/bb238ce2be78b51cb25a04d3e517741c to your computer and use it in GitHub Desktop.
Save felag/bb238ce2be78b51cb25a04d3e517741c to your computer and use it in GitHub Desktop.
BackupPC Debian 10 Buster Dockerfile
FROM debian:buster
LABEL maintainer="fernando.lagrange@probesys.com"
#######################################
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 dpkg -i backuppc-xs
RUN cd /tmp && git clone https://github.com/felag/rsync-bpc rsync-bpc && \
cd rsync-bpc && git checkout 3.0.9.13-DEBIAN && \
fakeroot dpkg-buildpackage -uc -us
RUN cd /tmp/ && wget -O libbackuppc-xs-perl_0.59.orig.tar.gz "https://github.com/backuppc/backuppc-xs/releases/download/0.59/BackupPC-XS-0.59.tar.gz"
RUN cd /tmp && git clone https://github.com/felag/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/felag/backuppc backuppc && \
cd backuppc && git checkout DEBIAN && \
fakeroot dpkg-buildpackage -uc -us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment