From 130be30268c11f0cd7fc71ad0b91d57f58798e2b Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Thu, 5 Dec 2019 10:26:46 +0100 Subject: [PATCH] Move package to src/ to properly separate what goes into docker image --- docker-compose.yaml | 4 ++-- .dockerignore => src/.dockerignore | 0 Dockerfile => src/Dockerfile | 0 crontab => src/crontab | 0 entrypoint.sh => src/entrypoint.sh | 0 .../restic_compose_backup}/alerts/__init__.py | 0 .../restic_compose_backup}/alerts/base.py | 0 .../restic_compose_backup}/alerts/discord.py | 0 .../restic_compose_backup}/alerts/smtp.py | 0 .../restic_compose_backup}/backup_runner.py | 0 {restic_compose_backup => src/restic_compose_backup}/cli.py | 0 .../restic_compose_backup}/commands.py | 0 .../restic_compose_backup}/config.py | 0 .../restic_compose_backup}/containers.py | 0 .../restic_compose_backup}/containers_db.py | 0 {restic_compose_backup => src/restic_compose_backup}/log.py | 0 .../restic_compose_backup}/restic.py | 0 {restic_compose_backup => src/restic_compose_backup}/utils.py | 0 setup.py => src/setup.py | 0 19 files changed, 2 insertions(+), 2 deletions(-) rename .dockerignore => src/.dockerignore (100%) rename Dockerfile => src/Dockerfile (100%) rename crontab => src/crontab (100%) rename entrypoint.sh => src/entrypoint.sh (100%) rename {restic_compose_backup => src/restic_compose_backup}/alerts/__init__.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/alerts/base.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/alerts/discord.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/alerts/smtp.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/backup_runner.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/cli.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/commands.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/config.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/containers.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/containers_db.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/log.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/restic.py (100%) rename {restic_compose_backup => src/restic_compose_backup}/utils.py (100%) rename setup.py => src/setup.py (100%) diff --git a/docker-compose.yaml b/docker-compose.yaml index 3ceaf4f..104f199 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3' services: backup: - build: . + build: ./src env_file: - restic_compose_backup.env - alerts.env @@ -12,7 +12,7 @@ services: - ./restic_data:/restic_data - ./restic_cache:/cache # Map in project source in dev - - .:/restic-compose-backup + - ./src:/restic-compose-backup web: image: nginx labels: diff --git a/.dockerignore b/src/.dockerignore similarity index 100% rename from .dockerignore rename to src/.dockerignore diff --git a/Dockerfile b/src/Dockerfile similarity index 100% rename from Dockerfile rename to src/Dockerfile diff --git a/crontab b/src/crontab similarity index 100% rename from crontab rename to src/crontab diff --git a/entrypoint.sh b/src/entrypoint.sh similarity index 100% rename from entrypoint.sh rename to src/entrypoint.sh diff --git a/restic_compose_backup/alerts/__init__.py b/src/restic_compose_backup/alerts/__init__.py similarity index 100% rename from restic_compose_backup/alerts/__init__.py rename to src/restic_compose_backup/alerts/__init__.py diff --git a/restic_compose_backup/alerts/base.py b/src/restic_compose_backup/alerts/base.py similarity index 100% rename from restic_compose_backup/alerts/base.py rename to src/restic_compose_backup/alerts/base.py diff --git a/restic_compose_backup/alerts/discord.py b/src/restic_compose_backup/alerts/discord.py similarity index 100% rename from restic_compose_backup/alerts/discord.py rename to src/restic_compose_backup/alerts/discord.py diff --git a/restic_compose_backup/alerts/smtp.py b/src/restic_compose_backup/alerts/smtp.py similarity index 100% rename from restic_compose_backup/alerts/smtp.py rename to src/restic_compose_backup/alerts/smtp.py diff --git a/restic_compose_backup/backup_runner.py b/src/restic_compose_backup/backup_runner.py similarity index 100% rename from restic_compose_backup/backup_runner.py rename to src/restic_compose_backup/backup_runner.py diff --git a/restic_compose_backup/cli.py b/src/restic_compose_backup/cli.py similarity index 100% rename from restic_compose_backup/cli.py rename to src/restic_compose_backup/cli.py diff --git a/restic_compose_backup/commands.py b/src/restic_compose_backup/commands.py similarity index 100% rename from restic_compose_backup/commands.py rename to src/restic_compose_backup/commands.py diff --git a/restic_compose_backup/config.py b/src/restic_compose_backup/config.py similarity index 100% rename from restic_compose_backup/config.py rename to src/restic_compose_backup/config.py diff --git a/restic_compose_backup/containers.py b/src/restic_compose_backup/containers.py similarity index 100% rename from restic_compose_backup/containers.py rename to src/restic_compose_backup/containers.py diff --git a/restic_compose_backup/containers_db.py b/src/restic_compose_backup/containers_db.py similarity index 100% rename from restic_compose_backup/containers_db.py rename to src/restic_compose_backup/containers_db.py diff --git a/restic_compose_backup/log.py b/src/restic_compose_backup/log.py similarity index 100% rename from restic_compose_backup/log.py rename to src/restic_compose_backup/log.py diff --git a/restic_compose_backup/restic.py b/src/restic_compose_backup/restic.py similarity index 100% rename from restic_compose_backup/restic.py rename to src/restic_compose_backup/restic.py diff --git a/restic_compose_backup/utils.py b/src/restic_compose_backup/utils.py similarity index 100% rename from restic_compose_backup/utils.py rename to src/restic_compose_backup/utils.py diff --git a/setup.py b/src/setup.py similarity index 100% rename from setup.py rename to src/setup.py