Skip to content
Snippets Groups Projects
Commit f03d5444 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

re-enable letsencrypt,

adjust deploy script to persistent docker containers
parent a4911768
No related branches found
No related tags found
No related merge requests found
Pipeline #99418 passed
...@@ -88,21 +88,21 @@ services: ...@@ -88,21 +88,21 @@ services:
- "80:80" - "80:80"
- "443:443" - "443:443"
# letsencrypt: letsencrypt:
# image: "jrcs/letsencrypt-nginx-proxy-companion:latest" image: "jrcs/letsencrypt-nginx-proxy-companion:latest"
# container_name: "letsencrypt-helper" container_name: "letsencrypt-helper"
# volumes: volumes:
# - "html:/usr/share/nginx/html" - "html:/usr/share/nginx/html"
# - "dhparam:/etc/nginx/dhparam" - "dhparam:/etc/nginx/dhparam"
# - "vhost:/etc/nginx/vhost.d" - "vhost:/etc/nginx/vhost.d"
# - "certs:/etc/nginx/certs" - "certs:/etc/nginx/certs"
# - "/run/docker.sock:/var/run/docker.sock:ro" - "/run/docker.sock:/var/run/docker.sock:ro"
# environment: environment:
# NGINX_PROXY_CONTAINER: "reverse-proxy" NGINX_PROXY_CONTAINER: "reverse-proxy"
# DEFAULT_EMAIL: "m.petrova@fz-juelich.de" DEFAULT_EMAIL: "m.petrova@fz-juelich.de"
# restart: "always" restart: "always"
# depends_on: depends_on:
# - "reverse-proxy" - "reverse-proxy"
postgres: postgres:
image: postgres:13 image: postgres:13
......
...@@ -21,7 +21,7 @@ if [ -z ${6+x} ]; then unset AIRFLOW__CORE__FERNET_KEY; else export AIRFLOW__COR ...@@ -21,7 +21,7 @@ if [ -z ${6+x} ]; then unset AIRFLOW__CORE__FERNET_KEY; else export AIRFLOW__COR
echo "DEBUG values: OLD_DIR=$OLD_DIR, ENTRYPOINT_DIR=$ENTRYPOINT and GIT_REPO=$GIT_REPO" echo "DEBUG values: OLD_DIR=$OLD_DIR, ENTRYPOINT_DIR=$ENTRYPOINT and GIT_REPO=$GIT_REPO"
echo "DEBUG using secrets backend: $AIRFLOW__SECRETS__BACKEND" echo "DEBUG using secrets backend: $AIRFLOW__SECRETS__BACKEND"
echo "DEBUG backend args length: ${#AIRFLOW__SECRETS__BACKEND_KWARGS}" echo "DEBUG backend args length: ${#AIRFLOW__SECRETS__BACKEND_KWARGS}"
echo "DEBUG fernet key: ${AIRFLOW__CORE__FERNET_KEY}" #echo "DEBUG fernet key: ${AIRFLOW__CORE__FERNET_KEY}"
cd $ENTRYPOINT cd $ENTRYPOINT
...@@ -32,6 +32,9 @@ AIRFLOW_DIR=`pwd` ...@@ -32,6 +32,9 @@ AIRFLOW_DIR=`pwd`
echo "Project dir is set to: $AIRFLOW_DIR" echo "Project dir is set to: $AIRFLOW_DIR"
echo "Proceeding as user $(whoami)" echo "Proceeding as user $(whoami)"
# clean out the target directory to ensure only new stuff is there
rm -rf $AIRFLOW_DIR/*
# Make the necessary folders for the airflow artefacts and copy the corresponging content # Make the necessary folders for the airflow artefacts and copy the corresponging content
mkdir -p ./dags ./logs ./plugins ./config ./templates mkdir -p ./dags ./logs ./plugins ./config ./templates
cd $GIT_REPO cd $GIT_REPO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment