docker-borgbackup-cron (sha256:2660837eafe2ef30161094b38468d7d054bb39a35b087ad8e3d1a0aaf1fa9a92)
Published 2024-04-01 10:40:17 +02:00 by adminuser
Installation
docker pull git.deditoolbox.fr/freesker/docker-borgbackup-cron@sha256:2660837eafe2ef30161094b38468d7d054bb39a35b087ad8e3d1a0aaf1fa9a92sha256:2660837eafe2ef30161094b38468d7d054bb39a35b087ad8e3d1a0aaf1fa9a92Image layers
| ADD file:d3a2f1f42338ba7066e352cea3b7bf4c7576e6b96fef785e8da763114f337c0e in / |
| CMD ["bash"] |
| RUN /bin/sh -c apt-get update && apt-get install -y openssh-client python3 python3-pip && apt-get clean # buildkit |
| ARG ANSIBLE_PIP_TAG=6.3.0 |
| RUN |1 ANSIBLE_PIP_TAG=6.3.0 /bin/sh -c pip3 install ansible==${ANSIBLE_PIP_TAG} # buildkit |
| ENV ANSIBLE_LOCALHOST_WARNING=False |
| RUN |1 ANSIBLE_PIP_TAG=6.3.0 /bin/sh -c mkdir /etc/ansible # buildkit |
| RUN |1 ANSIBLE_PIP_TAG=6.3.0 /bin/sh -c touch /etc/ansible/hosts # buildkit |
| CMD ["ansible-playbook" "--version"] |
| RUN /bin/sh -c apt-get --allow-releaseinfo-change update && apt-get install -y git # buildkit |
| RUN /bin/sh -c git clone https://git.deditoolbox.fr/freesker/ansible-playbook-smtp-email.git /var/smtp-email-playbook # buildkit |
| RUN /bin/sh -c git clone https://git.deditoolbox.fr/freesker/ansible-playbook-postgresql-dump /var/postgresql-dump-playbook # buildkit |
| RUN /bin/sh -c git clone https://git.deditoolbox.fr/freesker/ansible-playbook-borg-backup.git /var/borg-backup-playbook # buildkit |
| RUN /bin/sh -c apt-get install -y python3 python3-dev python3-pip python3-virtualenv libacl1-dev libacl1 libssl-dev liblz4-dev libzstd-dev libxxhash-dev build-essential pkg-config python3-pkgconfig wget curl # buildkit |
| RUN /bin/sh -c curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg # buildkit |
| RUN /bin/sh -c sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list' # buildkit |
| RUN /bin/sh -c apt update && apt-get install -y postgresql-client # buildkit |
| RUN /bin/sh -c apt-get install -y cron # buildkit |
| RUN /bin/sh -c apt-get clean # buildkit |
| RUN /bin/sh -c wget https://github.com/borgbackup/borg/releases/download/1.2.7/borg-linux64 # buildkit |
| RUN /bin/sh -c mv borg-linux64 /usr/local/bin/borg # buildkit |
| RUN /bin/sh -c chown root:root /usr/local/bin/borg # buildkit |
| RUN /bin/sh -c chmod 755 /usr/local/bin/borg # buildkit |
| RUN /bin/sh -c curl -fsSL https://get.docker.com -o get-docker.sh # buildkit |
| RUN /bin/sh -c bash get-docker.sh # buildkit |
| RUN /bin/sh -c rm get-docker.sh # buildkit |
| COPY backup_script.sh /var/backup_script.sh # buildkit |
| RUN /bin/sh -c chmod +x /var/backup_script.sh # buildkit |
| COPY alive_msg.sh /var/alive_msg.sh # buildkit |
| RUN /bin/sh -c chmod +x /var/alive_msg.sh # buildkit |
| COPY borgbackup_cron /etc/cron.d/borgbackup_cron # buildkit |
| RUN /bin/sh -c chmod +x /etc/cron.d/borgbackup_cron # buildkit |
| RUN /bin/sh -c crontab /etc/cron.d/borgbackup_cron # buildkit |
| RUN /bin/sh -c ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime # buildkit |
| COPY entrypoint.sh /var/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /var/entrypoint.sh # buildkit |
| ENTRYPOINT ["/var/entrypoint.sh"] |
| CMD ["cron" "-f"] |
Details
2024-04-01 10:40:17 +02:00
Versions (4)
View all
Container
6
OCI / Docker
linux/amd64
610 MiB