From b9edb8c565550714dfbf7ee7ed49851c72930fac Mon Sep 17 00:00:00 2001 From: technorabilia Date: Sat, 9 Mar 2024 00:31:47 +0000 Subject: [PATCH] Workflow update --- lsio/python/docker-compose.yaml | 21 +++++++++++++++++++++ lsio/python/docker-run.sh | 11 +++++++++++ lsio/python/run-once.sh | 3 +++ 3 files changed, 35 insertions(+) create mode 100644 lsio/python/docker-compose.yaml create mode 100644 lsio/python/docker-run.sh create mode 100644 lsio/python/run-once.sh diff --git a/lsio/python/docker-compose.yaml b/lsio/python/docker-compose.yaml new file mode 100644 index 0000000..0790ef8 --- /dev/null +++ b/lsio/python/docker-compose.yaml @@ -0,0 +1,21 @@ +This container needs special attention. Please check https://hub.docker.com/r/linuxserver/python for details. +--- +version: "2.1" +services: + python: + image: ghcr.io/linuxserver/python + container_name: python + environment: + # for UserID + - PUID=${PUID:-1024} + # for GroupID + - PGID=${PGID:-100} + # specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). + - TZ=${TZ:-Europe/Amsterdam} + volumes: + # Configuration files. + - ${BASEDIR:-/volume1/docker}/python/config:/config + ports: + # Application WebUI + - 80:80 + restart: unless-stopped diff --git a/lsio/python/docker-run.sh b/lsio/python/docker-run.sh new file mode 100644 index 0000000..a7d2e8b --- /dev/null +++ b/lsio/python/docker-run.sh @@ -0,0 +1,11 @@ +This container needs special attention. Please check https://hub.docker.com/r/linuxserver/python for details. +. ./.env +docker run -d \ + --name=python \ + -e PUID=${PUID:-1024} `# for UserID` \ + -e PGID=${PGID:-100} `# for GroupID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \ + -p 80:80 `# Application WebUI` \ + -v ${BASEDIR:-/volume1/docker}/python/config:/config `# Configuration files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/python diff --git a/lsio/python/run-once.sh b/lsio/python/run-once.sh new file mode 100644 index 0000000..584ce0c --- /dev/null +++ b/lsio/python/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/python/config