Skip to content

Commit

Permalink
Cleanup output from docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 15, 2021
1 parent 246df72 commit 9b1b67f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9b1b67f

Please sign in to comment.