From 4d040a5b89bb216d8fff185084dbec8288eaf2a8 Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Thu, 28 Sep 2023 22:55:27 +0200 Subject: [PATCH] Remove old karaoke software --- karaoke/Dockerfile | 24 ------------------------ karaoke/requirements.txt | 11 ----------- karaoke/run | 4 ---- karaoke/uwsgi-mafiastar.ini | 30 ------------------------------ 4 files changed, 69 deletions(-) delete mode 100755 karaoke/Dockerfile delete mode 100644 karaoke/requirements.txt delete mode 100755 karaoke/run delete mode 100644 karaoke/uwsgi-mafiastar.ini diff --git a/karaoke/Dockerfile b/karaoke/Dockerfile deleted file mode 100755 index 09bbaa0..0000000 --- a/karaoke/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -FROM debian:bullseye-slim - -RUN apt-get -y --no-install-recommends install g++ wget uwsgi uwsgi-plugin-python3 python3 python3-pip python3-six make python3-psycopg2 python3-ldap3 gettext gcc python3-dev libldap2-dev libsasl2-dev libldap-2.4-2 libsasl2-2 - -COPY MafiAStar /app/src - -WORKDIR /app/src - -ADD requirements.txt /app/src - -RUN pip3 install -r requirements.txt -RUN python3 manage.py compilemessages -RUN ln -sf /app/config/settings.py /app/src/MafiAStar/settings.py - -#RUN apt purge -y --auto-remove g++ wget python3-dev python3-pip make gcc libldap2-dev libsasl2-dev - -COPY run /usr/local/bin -COPY uwsgi-mafiastar.ini /etc/uwsgi/mafiastar.ini - -VOLUME /app/static -VOLUME /app/config -VOLUME /app/media - -ENTRYPOINT /usr/local/bin/run diff --git a/karaoke/requirements.txt b/karaoke/requirements.txt deleted file mode 100644 index 60d7556..0000000 --- a/karaoke/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -# This file contains pinned requirements from the old container -Django==1.11.29 -django-auth-ldap==1.2.16 -django-guardian==1.4.9 -django-ldapdb==0.9.0 -mutagen==1.38 -prettytable==0.7.2 -psycopg2-binary==2.8.6 -requests==2.20.0 -sentry-sdk==0.19.1 -uWSGI==2.0.15 diff --git a/karaoke/run b/karaoke/run deleted file mode 100755 index 1fc39c2..0000000 --- a/karaoke/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -python3 /app/src/manage.py migrate -python3 /app/src/manage.py collectstatic --noinput -exec uwsgi /etc/uwsgi/mafiastar.ini diff --git a/karaoke/uwsgi-mafiastar.ini b/karaoke/uwsgi-mafiastar.ini deleted file mode 100644 index 05b449d..0000000 --- a/karaoke/uwsgi-mafiastar.ini +++ /dev/null @@ -1,30 +0,0 @@ -[uwsgi] - -procname-master = uwsgi %n -master = true -http = :80 - -plugins = python - -chdir = /app/src - -module = MafiAStar.wsgi:application -env = DJANGO_SETTINGS_MODULE=MafiAStar.settings -env = LANG='C.UTF-8' -env = LC_ALL='C.UTF-8' - -; run with at least 1 process but increase up to 4 when needed -processes = 8 -cheaper = 2 - -; reload whenever this config file changes -; %p is the full path of the current config file -touch-reload = %p - -; disable uWSGI request logging -disable-logging = true - -enable-threads = true - -static-map = /static=/app/static -static-map = /media=/app/media