From 9b1b67f8e186492a48ee709db3c86632d7779bfc Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 15 Oct 2021 13:32:11 +0200 Subject: [PATCH] Cleanup output from docker run --- bin/run-in-docker.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/run-in-docker.sh b/bin/run-in-docker.sh index b29584c..6533b48 100755 --- a/bin/run-in-docker.sh +++ b/bin/run-in-docker.sh @@ -46,6 +46,8 @@ container_id=$(docker run \ # Call the function with the correct JSON event payload event_json=$(jq -n --arg t "${track_slug}" --arg e "${exercise_slug}" '{track: $t, exercise: $e, solution: "/solution", output: "/output"}') -curl -XPOST http://localhost:${container_port}/2015-03-31/functions/function/invocations -d "${event_json}" +curl --silent --output /dev/null -XPOST http://localhost:${container_port}/2015-03-31/functions/function/invocations -d "${event_json}" -docker stop $container_id +docker stop $container_id > /dev/null + +echo "${track_slug}/${exercise_slug}: done" \ No newline at end of file