2024-07-24 17:07:54 +02:00
|
|
|
FROM debian:stable-slim as builder
|
|
|
|
|
|
|
|
ARG AMANDA_VERSION=tag-community-3.5.4
|
|
|
|
|
|
|
|
RUN apt-get -qy update && apt-get -qy upgrade
|
|
|
|
RUN apt-get -qy install git libssl-dev make autoconf autoconf-archive automake bash bison \
|
|
|
|
flex perl libperl-dev libglib2.0-dev swig \
|
|
|
|
libtirpc-dev libreadline-dev libxslt1-dev libxml-simple-perl
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
RUN git clone https://github.com/zmanda/amanda.git && cd amanda && git checkout ${AMANDA_VERSION} && git submodule update --init --recursive
|
|
|
|
|
|
|
|
WORKDIR /src/amanda
|
|
|
|
|
|
|
|
RUN ./autogen
|
|
|
|
RUN ./configure --without-server --without-bsd-security --with-ssl-security --with-ssh-security --with-readline --with-ipv6 --with-user=backup --with-group=backup
|
|
|
|
RUN make
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
FROM debian:stable-slim
|
|
|
|
|
|
|
|
RUN apt-get -qy update && apt-get -qy upgrade
|
2024-07-25 08:15:55 +02:00
|
|
|
RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \
|
2024-07-29 11:42:42 +02:00
|
|
|
libxslt1.1 libxml-simple-perl libjson-perl openbsd-inetd
|
|
|
|
|
|
|
|
RUN apt-get -qy install tini
|
2024-07-24 17:07:54 +02:00
|
|
|
|
|
|
|
COPY --from=builder /usr/local/ /usr/local/
|
2024-07-31 10:11:40 +02:00
|
|
|
|
|
|
|
COPY conf/amanda-client.conf /usr/local/etc/amanda/
|
|
|
|
RUN chown backup:backup /usr/local/etc/amanda
|
|
|
|
|
2024-07-29 11:42:42 +02:00
|
|
|
COPY inetd.conf /etc/inetd.conf
|
|
|
|
COPY scripts/entryPoint.sh /entryPoint.sh
|
|
|
|
RUN chmod +x /entryPoint.sh
|
2024-07-24 17:07:54 +02:00
|
|
|
|
|
|
|
ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
|
|
|
|
|
2024-07-31 11:44:56 +02:00
|
|
|
RUN chown -R backup:backup /var/backups
|
2024-07-31 12:54:50 +02:00
|
|
|
RUN cp /usr/local/etc/amanda/amanda-security.conf /usr/local/etc/
|
|
|
|
RUN chown backup:backup /usr/local/etc/amanda-security.conf
|
2024-07-24 17:07:54 +02:00
|
|
|
USER backup
|
2024-07-29 11:42:42 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]
|