From e84eb1698204a92cc7868ea4a55ca50ef6bc9369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Wed, 25 Nov 2020 15:00:06 -0300 Subject: [PATCH] Corrige abertura do sapl-logs no docker/start --- docker/Dockerfile | 2 ++ docker/start.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 69ef33de3..0885c5ba5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -47,6 +47,8 @@ COPY docker/config/nginx/sapl.conf /etc/nginx/conf.d COPY docker/config/nginx/nginx.conf /etc/nginx/nginx.conf COPY docker/config/env_dockerfile /var/interlegis/sapl/sapl/.env +COPY sapl-logs/python-indexer.py $HOME + RUN python3 manage.py collectstatic --noinput --clear # Remove .env(fake) e sapl.db da imagem diff --git a/docker/start.sh b/docker/start.sh index bab351e02..59072d7b6 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -79,7 +79,7 @@ if [ "${USE_SOLR-False}" == "True" ] || [ "${USE_SOLR-False}" == "true" ]; then echo "Connecting to solr..." python3 solr_api.py -u $SOLR_URL -c $SOLR_COLLECTION -s $NUM_SHARDS -rf $RF -ms $MAX_SHARDS_PER_NODE & # python3 manage.py rebuild_index --noinput & - python3 ../sapl-logs/python-indexer.py & + nohup python-indexer.py & else echo "Solr is offline, not possible to connect." fi