From 31005c686751d7812cfcf60245e774150d19e422 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Wed, 10 Apr 2024 23:55:06 -0400 Subject: [PATCH] feat: migrate from monorepo --- Dockerfile-deluge-app | 5 +++++ build.sh | 5 +++++ constants.sh | 5 +++++ start.sh | 21 +++++++++++++++++++++ stop.sh | 3 +++ 5 files changed, 39 insertions(+) create mode 100644 Dockerfile-deluge-app create mode 100644 build.sh create mode 100644 constants.sh create mode 100644 start.sh create mode 100644 stop.sh diff --git a/Dockerfile-deluge-app b/Dockerfile-deluge-app new file mode 100644 index 0000000..bb90119 --- /dev/null +++ b/Dockerfile-deluge-app @@ -0,0 +1,5 @@ +FROM lscr.io/linuxserver/deluge:latest + +ENV TZ=America/Toronto + +EXPOSE 8112 6881/tcp 6881/udp diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..d8fa3af --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source constants.sh + +podman build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-deluge-app . diff --git a/constants.sh b/constants.sh new file mode 100644 index 0000000..834c9b0 --- /dev/null +++ b/constants.sh @@ -0,0 +1,5 @@ +#!/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 new file mode 100644 index 0000000..5d0cd32 --- /dev/null +++ b/start.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +source constants.sh + +podman pod create \ + -p 8112:8112 \ + --replace \ + "deluge" + +podman run \ + -d \ + --pod "deluge" \ + -e PGUID=1000 \ + -e PGID=1000 \ + --name "$APP_CONTAINER_NAME" \ + --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" diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..05bec24 --- /dev/null +++ b/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +podman pod stop "deluge"