Compare commits

...

2 Commits

Author SHA1 Message Date
2019a67867
feat: start amanda client on container start
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-29 11:42:42 +02:00
28132db6fc
feat: initial Containerfile for operator image 2024-07-25 08:20:03 +02:00
4 changed files with 35 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 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 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/
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

23
operator/Containerfile Normal file
View File

@ -0,0 +1,23 @@
FROM debian:stable-slim as kabo-builder
RUN apt-get -qy update && apt-get -qy upgrade
RUN apt-get -qy install git gcc libc6-dev liblwp-protocol-https-perl make patch
RUN mkdir /var/www && chown www-data /var/www
USER www-data
RUN git clone https://github.com/tokuhirom/plenv.git ~/.plenv
RUN git clone https://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
RUN export PATH="$HOME/.plenv/bin:$PATH" && eval "$(plenv init -)"
RUN export PATH="$HOME/.plenv/bin:$PATH" && plenv install 5.40.0
FROM debian:stable-slim
USER www-data
COPY --from=kabo-builder $HOME/.plenv/ $HOME/.plenv/