#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")"

echo ""
echo "Building docker images for Argus Video Service."
echo ""

docker build -f ../server/Dockerfile --tag argus.docker.zooxlabs.com/argus-video-server:latest ..
docker build -f ../worker/Dockerfile --tag argus.docker.zooxlabs.com/argus-video-worker:latest ..

echo ""
echo "Starting integration test environment for Argus Video Service."
echo ""

docker-compose --project-name argus up -d
