-
Notifications
You must be signed in to change notification settings - Fork 2
/
recipe_amanda_deb.Dockerfile
26 lines (24 loc) · 1.46 KB
/
recipe_amanda_deb.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:jessie-20210311
SHELL ["/usr/bin/env", "bash", "-xveuc"]
ONBUILD ARG AMANDA_VERSION=tags/community_3_4_5
ONBUILD RUN set -euxv; \
useradd amandabackup -u 63998 -g disk; \
build_deps="curl ca-certificates build-essential automake autoconf libtool \
libglib2.0-dev fakeroot debhelper dump flex libssl-dev \
libncurses5-dev smbclient mtx byacc swig \
libcurl4-openssl-dev bsd-mailx libreadline-dev gnuplot-nox"; \
# autogen pkg-config autoconf-archive autopoint"; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${build_deps}; \
#curl -LO https://github.com/zmanda/amanda/archive/${AMANDA_VERSION}/amanda.tar.gz; \
curl -fsSRLO https://github.com/andyneff/amanda/archive/${AMANDA_VERSION}/amanda.tar.gz; \
tar zxf amanda.tar.gz; \
cd amanda-${AMANDA_VERSION//\//-}; \
./autogen; \
#sed -i 's|--with-bsdtcp-security.*|&\n--with-low-tcpportrange=880,882 \\\n--with-tcpportrange=11070,11071 \\\n--with-udpportrange=883,885 \\|' ./packaging/deb/rules; \
packaging/deb/buildpkg; \
mv *.deb ../; \
DEBIAN_FRONTEND=noninteractive apt-get purge --auto-remove -y ${build_deps}; \
cd / ; \
touch -r /amanda.tar.gz /*.deb; \
rm -r /amanda.tar.gz /amanda-${AMANDA_VERSION//\//-}