From db43deffb337ca02111055795bd6e053d3a8c908 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Thu, 26 Aug 2021 14:52:51 -0700 Subject: [PATCH] api: use curl for metadata ping --- mpcontribs-api/Dockerfile | 2 +- mpcontribs-api/main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpcontribs-api/Dockerfile b/mpcontribs-api/Dockerfile index 8395dba0c..f126f0a25 100644 --- a/mpcontribs-api/Dockerfile +++ b/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 diff --git a/mpcontribs-api/main.sh b/mpcontribs-api/main.sh index 4600870e8..5746120e7 100644 --- a/mpcontribs-api/main.sh +++ b/mpcontribs-api/main.sh @@ -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