feat: migrate from monorepo
This commit is contained in:
commit
31005c6867
5 changed files with 39 additions and 0 deletions
5
Dockerfile-deluge-app
Normal file
5
Dockerfile-deluge-app
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM lscr.io/linuxserver/deluge:latest
|
||||
|
||||
ENV TZ=America/Toronto
|
||||
|
||||
EXPOSE 8112 6881/tcp 6881/udp
|
5
build.sh
Normal file
5
build.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
source constants.sh
|
||||
|
||||
podman build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-deluge-app .
|
5
constants.sh
Normal file
5
constants.sh
Normal file
|
@ -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
|
21
start.sh
Normal file
21
start.sh
Normal file
|
@ -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"
|
3
stop.sh
Normal file
3
stop.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
podman pod stop "deluge"
|
Loading…
Reference in a new issue