From 39ed6d3fc32b037712d26d2aaa72c18ed89dbffe Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Wed, 24 Jul 2024 17:07:54 +0200 Subject: [PATCH] ADD: initial containerfiles for server and client --- client/Containerfile | 29 +++++++++++++++++++++++++++++ server/Containerfile | 31 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 client/Containerfile create mode 100644 server/Containerfile diff --git a/client/Containerfile b/client/Containerfile new file mode 100644 index 0000000..34735f2 --- /dev/null +++ b/client/Containerfile @@ -0,0 +1,29 @@ +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 +RUN apt-get -qy install git libssl bash perl libglib2.0 swig libtirpc libreadline libxslt1 libxml-simple-perl + +COPY --from=builder /usr/local/ /usr/local/ + +ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/ + +USER backup diff --git a/server/Containerfile b/server/Containerfile new file mode 100644 index 0000000..08147d9 --- /dev/null +++ b/server/Containerfile @@ -0,0 +1,31 @@ +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 + + +RUN ./autogen +RUN ./configure --without-client --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 +RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \ + libxslt1.1 libxml-simple-perl libjson-perl + +COPY --from=builder /usr/local/ /usr/local/ + +ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/ + +USER backup