feat: start amanda client on container start
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominik Meyer 2024-07-29 11:42:42 +02:00
parent 28132db6fc
commit 2019a67867
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
3 changed files with 12 additions and 1 deletions

View File

@ -21,10 +21,17 @@ FROM debian:stable-slim
RUN apt-get -qy update && apt-get -qy upgrade RUN apt-get -qy update && apt-get -qy upgrade
RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \ RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \
libxslt1.1 libxml-simple-perl libjson-perl libxslt1.1 libxml-simple-perl libjson-perl openbsd-inetd
RUN apt-get -qy install tini
COPY --from=builder /usr/local/ /usr/local/ COPY --from=builder /usr/local/ /usr/local/
COPY inetd.conf /etc/inetd.conf
COPY scripts/entryPoint.sh /entryPoint.sh
RUN chmod +x /entryPoint.sh
ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/ ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
USER backup USER backup
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]

1
client/inetd.conf Normal file
View File

@ -0,0 +1 @@
amanda stream tcp nowait backup /usr/local/libexec/amanda/amandad amandad -auth=ssl amdump

3
client/scripts/entryPoint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
inetd -d /etc/inetd.conf