Skip to content

Commit

Permalink
Speed up stopping Enketo, NGINX, service containers (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
lognaturel authored Mar 24, 2023
1 parent 6099c98 commit 4b818de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion enketo.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN apt-get update && \

EXPOSE 8005

CMD ./start-enketo.sh
CMD ["./start-enketo.sh"]
2 changes: 1 addition & 1 deletion files/enketo/start-enketo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ envsubst '$DOMAIN $BASE_URL $SECRET $LESS_SECRET $API_KEY $SUPPORT_EMAIL' \
> "$CONFIG_PATH"

echo "starting pm2/enketo.."
pm2-runtime app.js -n enketo
exec pm2-runtime app.js -n enketo
2 changes: 1 addition & 1 deletion files/nginx/setup-odk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ else
perl -i -ne 'print if $. < 7 || $. > 14' /etc/nginx/conf.d/redirector.conf
echo "starting nginx for custom ssl and self-signed certs..."
fi
nginx -g "daemon off;"
exec nginx -g "daemon off;"
fi
3 changes: 1 addition & 2 deletions files/service/scripts/start-odk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ fi
echo "using $WORKER_COUNT worker(s) based on available memory ($MEMTOT).."

echo "starting server."
pm2-runtime ./pm2.config.js

exec pm2-runtime ./pm2.config.js

0 comments on commit 4b818de

Please sign in to comment.