Skip to content

Commit

Permalink
Merge pull request #418 from getodk/next
Browse files Browse the repository at this point in the history
Release v2023.2.1
  • Loading branch information
matthew-white authored Mar 24, 2023
2 parents b997437 + 4b818de commit 302b582
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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 start --no-daemon 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
5 changes: 3 additions & 2 deletions service.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:16.19.1 as intermediate
ARG node_version=16.19.1
FROM node:${node_version} as intermediate

COPY . .
RUN mkdir /tmp/sentry-versions
Expand All @@ -8,7 +9,7 @@ RUN git describe --tags --dirty > /tmp/sentry-versions/server
WORKDIR ../client
RUN git describe --tags --dirty > /tmp/sentry-versions/client

FROM node:16.17.0
FROM node:${node_version}

WORKDIR /usr/odk

Expand Down

0 comments on commit 302b582

Please sign in to comment.