Browse Source

Corrige abertura do sapl-logs no docker/start

pull/3317/head
Vinícius Cantuária 4 years ago
parent
commit
e84eb16982
  1. 2
      docker/Dockerfile
  2. 2
      docker/start.sh

2
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

2
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

Loading…
Cancel
Save