feat: start amanda client on container start
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
28132db6fc
commit
2019a67867
@ -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
1
client/inetd.conf
Normal 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
3
client/scripts/entryPoint.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
inetd -d /etc/inetd.conf
|
Loading…
Reference in New Issue
Block a user