From 748cbed50d01b459b08b4437c6df712137adfefa Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Mon, 25 Nov 2024 13:07:17 +0500 Subject: [PATCH] Use custom restic image --- roles/backups/docker/Dockerfile | 2 ++ roles/backups/docker/README.md | 7 +++++++ roles/backups/tasks/main.yml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 roles/backups/docker/Dockerfile create mode 100644 roles/backups/docker/README.md diff --git a/roles/backups/docker/Dockerfile b/roles/backups/docker/Dockerfile new file mode 100644 index 0000000..82d9830 --- /dev/null +++ b/roles/backups/docker/Dockerfile @@ -0,0 +1,2 @@ +FROM restic/restic:0.17.3 +RUN apk add postgresql16-client diff --git a/roles/backups/docker/README.md b/roles/backups/docker/README.md new file mode 100644 index 0000000..ad663e4 --- /dev/null +++ b/roles/backups/docker/README.md @@ -0,0 +1,7 @@ +# Restic + +Image name: git.comfycamp.space/lumin/restic + +## Changes + +- Postgresql client diff --git a/roles/backups/tasks/main.yml b/roles/backups/tasks/main.yml index 8c0a3f2..4974af0 100644 --- a/roles/backups/tasks/main.yml +++ b/roles/backups/tasks/main.yml @@ -26,7 +26,7 @@ become: true community.docker.docker_container: name: restic-1 - image: restic/restic:0.17.3 + image: git.comfycamp.space/lumin/restic:0.17.3 hostname: restic-1 env: AWS_ACCESS_KEY_ID: "{{ s3_access_key_id }}"