From c45988718254d5db2571480c68d3c044df3cbdd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 23 Jul 2017 10:43:38 +0200 Subject: [PATCH] added cleanup command to backup container --- containers/zammad-backup/Dockerfile | 3 ++- containers/zammad-backup/docker-entrypoint.sh | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/containers/zammad-backup/Dockerfile b/containers/zammad-backup/Dockerfile index 40aa1ea..2329663 100644 --- a/containers/zammad-backup/Dockerfile +++ b/containers/zammad-backup/Dockerfile @@ -19,7 +19,8 @@ LABEL org.label-schema.build-date="$BUILD_DATE" \ RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - \ && echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list.d/postgres.list \ - && apt-get update;apt-get -y install postgresql-client + && apt-get update;apt-get -y install postgresql-client \ + && rm -rf /var/lib/apt/lists/* # create entrypoint COPY containers/zammad-backup/docker-entrypoint.sh / diff --git a/containers/zammad-backup/docker-entrypoint.sh b/containers/zammad-backup/docker-entrypoint.sh index f572c78..62e47d4 100644 --- a/containers/zammad-backup/docker-entrypoint.sh +++ b/containers/zammad-backup/docker-entrypoint.sh @@ -1,7 +1,6 @@ #!/bin/bash if [ "$1" = 'zammad-backup' ]; then - # wait for zammad process coming up until (echo > /dev/tcp/zammad-railsserver/3000) &> /dev/null; do echo "backup waiting for zammads railsserver to be ready..." @@ -25,5 +24,4 @@ if [ "$1" = 'zammad-backup' ]; then # wait until next backup sleep ${BACKUP_SLEEP} done - fi