From 45f99f324ee7262f60dbd8da161c8e4324c55331 Mon Sep 17 00:00:00 2001 From: Tim Hagen Date: Thu, 19 Sep 2024 11:02:00 +0200 Subject: [PATCH] final deployment adjustments --- application/Dockerfile.prod | 9 ++++++--- application/config/tira-application-config.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/application/Dockerfile.prod b/application/Dockerfile.prod index ae611202..d72a12bc 100644 --- a/application/Dockerfile.prod +++ b/application/Dockerfile.prod @@ -89,9 +89,15 @@ echo "en_US.UTF-8 UTF-8" | tee -a /etc/locale.gen && locale-gen # Tools apt-get -qq install -y python3 python3-dev +# For MariaDB +apt-get -qq install -y mariadb-client # mkdir -p /tira/application/src chown -R tira:tira /tira + +# Allow binding port 80 +apt-get -qq install libcap2-bin +setcap CAP_NET_BIND_SERVICE=+eip /home/tira/.local/bin/uwsgi EOF @@ -106,9 +112,6 @@ useradd -ms /bin/bash tira # Change tira's password to tira echo 'tira:tira' | chpasswd usermod -aG sudo tira - -# apt-get -qq install libmariadb-dev ############# -apt-get -qq install mariadb-client ############# EOF ######################################################################################################################## diff --git a/application/config/tira-application-config.yml b/application/config/tira-application-config.yml index 248bb409..e2089bc9 100644 --- a/application/config/tira-application-config.yml +++ b/application/config/tira-application-config.yml @@ -1,7 +1,7 @@ # ---task/celebrity-profiling/user/hodge20a debug: !ENV ${TIRA_DEBUG:false} allowed_hosts: - - "127.0.0.1" + - "*" django_secret: "not-so-secret" # --- tira_root: !ENV ${TIRA_ROOT:/tira}