From ad06829a45f8ef8d660887efc9789be7fb01149a Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 9 May 2024 23:55:15 -0400 Subject: [PATCH] chore: remove constants file --- README.md | 5 +++++ build.sh | 4 +--- constants.sh | 5 ----- start.sh | 6 ++---- 4 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 README.md delete mode 100644 constants.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a4b71b --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Deluge + +## Configuration + +The application does not expect any environment files, an empty one should be supplied. diff --git a/build.sh b/build.sh index d8fa3af..4bd8d17 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,3 @@ #!/bin/bash -source constants.sh - -podman build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-deluge-app . +podman build -t "spad-deluge-app:$IMAGE_VERSION" -f Dockerfile-deluge-app . diff --git a/constants.sh b/constants.sh deleted file mode 100644 index 834c9b0..0000000 --- a/constants.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -export APP_NAME="deluge" -export APP_CONTAINER_NAME=$APP_NAME-app -export APP_IMAGE_NAME=$CONTAINER_NAME_PREFIX-$APP_CONTAINER_NAME diff --git a/start.sh b/start.sh index 5d0cd32..e8fec3b 100644 --- a/start.sh +++ b/start.sh @@ -1,7 +1,5 @@ #!/bin/bash -source constants.sh - podman pod create \ -p 8112:8112 \ --replace \ @@ -12,10 +10,10 @@ podman run \ --pod "deluge" \ -e PGUID=1000 \ -e PGID=1000 \ - --name "$APP_CONTAINER_NAME" \ + --name "deluge_app" \ --env-file "$ENV_FILE_DIR"/deluge.env \ --mount type=bind,source="$APP_DATA_DIR"/deluge/config,target=/config \ --mount type=bind,source="$APP_DATA_DIR"/deluge/downloads,target=/downloads \ --mount type=bind,source="$STORAGE_DIR",target=/complete \ --replace \ - "$APP_IMAGE_NAME:$IMAGE_VERSION" + "spad-deluge-app:$IMAGE_VERSION"