Skip to content

Commit

Permalink
api: use curl for metadata ping
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Aug 26, 2021
1 parent 8bd817b commit db43def
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mpcontribs-api/Dockerfile
@@ -1,5 +1,5 @@
FROM materialsproject/devops:python-3.96.4 as base
RUN apt-get update && apt-get install -y --no-install-recommends supervisor libpq-dev httpie && apt-get clean
RUN apt-get update && apt-get install -y --no-install-recommends supervisor libpq-dev curl && apt-get clean
WORKDIR /app

FROM base as builder
Expand Down
2 changes: 1 addition & 1 deletion mpcontribs-api/main.sh
Expand Up @@ -11,7 +11,7 @@ if [ -z "${METADATA_URI}" ]; then
else
# in AWS Fargate with potentially multiple tasks
echo "PINGING ${METADATA_URI}"
http ${METADATA_URI}
curl ${METADATA_URI} | python -m json.tool
supervisorctl start worker
supervisorctl start scheduler
fi
Expand Down

0 comments on commit db43def

Please sign in to comment.