mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Remove deprecated
This commit is contained in:
parent
14b2d5e3f5
commit
ee33865f3a
@ -1,45 +0,0 @@
|
|||||||
FROM alpine:3.5
|
|
||||||
|
|
||||||
MAINTAINER Adrien Ferrand <ferrand.ad@gmail.com>
|
|
||||||
|
|
||||||
ENV BACKUPPC_VERSION 3.3.2
|
|
||||||
ENV PAR2_VERSION v0.7.0
|
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
|
||||||
# Install backuppc build dependencies
|
|
||||||
gcc g++ autoconf automake make git patch perl perl-dev perl-cgi expat expat-dev curl wget \
|
|
||||||
# Install backuppc runtime dependencies
|
|
||||||
supervisor rsync samba-client iputils openssh openssl rrdtool msmtp lighttpd lighttpd-mod_auth gzip apache2-utils \
|
|
||||||
# Compile and install needed perl modules
|
|
||||||
&& cpan App::cpanminus \
|
|
||||||
&& cpanm -n Compress::Zlib Archive::Zip XML::RSS File::RsyncP File::Listing \
|
|
||||||
|
|
||||||
# Compile and install PAR2
|
|
||||||
&& git clone https://github.com/Parchive/par2cmdline.git /root/par2cmdline --branch $PAR2_VERSION \
|
|
||||||
&& cd /root/par2cmdline && ./automake.sh && ./configure && make && make check && make install \
|
|
||||||
|
|
||||||
# Configure MSMTP for mail delivery (initially sendmail is a sym link to busybox)
|
|
||||||
&& rm -f /usr/sbin/sendmail \
|
|
||||||
&& ln -s /usr/bin/msmtp /usr/sbin/sendmail \
|
|
||||||
|
|
||||||
# Get BackupPC, it will be installed at runtime to allow dynamic upgrade of existing config/pool
|
|
||||||
&& curl -o /root/BackupPC-$BACKUPPC_VERSION.tar.gz -L https://github.com/backuppc/backuppc/releases/download/$BACKUPPC_VERSION/BackupPC-$BACKUPPC_VERSION.tar.gz \
|
|
||||||
# Prepare backuppc home
|
|
||||||
&& mkdir -p /home/backuppc \
|
|
||||||
# Mark the docker as not runned yet, to allow entrypoint to do its stuff
|
|
||||||
&& touch /firstrun \
|
|
||||||
# Clean
|
|
||||||
&& rm -rf /root/backuppc-xs /root/rsync-bpc /root/par2cmdline \
|
|
||||||
&& apk --no-cache del gcc g++ autoconf automake make git patch perl-dev expat-dev curl wget
|
|
||||||
|
|
||||||
COPY files/lighttpd.conf /etc/lighttpd/lighttpd.conf
|
|
||||||
COPY files/entrypoint.sh /entrypoint.sh
|
|
||||||
COPY files/supervisord.conf /etc/supervisord.conf
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
VOLUME ["/etc/backuppc", "/home/backuppc", "/data/backuppc"]
|
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
|
Loading…
Reference in New Issue
Block a user