#!/bin/sh set -e docker build -t cloudlysis/aggregate:local -f docker/Dockerfile.rust --build-arg PACKAGE=aggregate --build-arg BIN=aggregate . cid="$(docker run -d -p 8085:8080 -e AGGREGATE_STORAGE_PATH=/tmp/aggregate-data cloudlysis/aggregate:local)" sleep 2 curl -fsS http://localhost:8085/health >/dev/null curl -fsS http://localhost:8085/ready >/dev/null curl -fsS http://localhost:8085/metrics >/dev/null docker rm -f "$cid" >/dev/null