From 50f061f7163e6b3a7e84fd8ff236617f3b515fd4 Mon Sep 17 00:00:00 2001 From: j4nk Date: Sat, 22 Feb 2025 00:07:14 -0500 Subject: [PATCH] Added containerization crap --- docker-compose.yml | 20 ++++++++++++++++++++ init.sh | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 docker-compose.yml create mode 100755 init.sh diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f8fe780 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.8' # Specify the Docker Compose file format version + +services: + qb: + image: docker.io/alpine:latest # Use the latest Nginx image from Docker Hub + volumes: + - ./bot.py:/bot.py # Mount a local directory to the container + - ./init.sh:/init.sh + - ./config.conf:/config.conf + - ./bartonfink.png:/bartonfink.png + command: /init.sh + + qb_testing: + image: docker.io/alpine:latest # Use the latest Nginx image from Docker Hub + volumes: + - ./bot.py:/bot.py # Mount a local directory to the container + - ./init.sh:/init.sh + - ./config_testing.conf:/config.conf + - ./qbittorrent_logo.png:/qbittorrent_logo.png + command: /init.sh \ No newline at end of file diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..471472a --- /dev/null +++ b/init.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +apk add python3 +apk add py3-pip +pip3 install --break-system-packages slixmpp +pip3 install --break-system-packages jellyfin-apiclient-python + +exec python3 /bot.py