#!/usr/bin/env bash
set -ex

# find the dir two levels up from here, home of all the repositories
COMPUTED_ROOT=$(readlink -e $(dirname "$0")/../../)
# NTECH_ROOT should be the same, but if available use it so user can do their own thing.
NTECH_ROOT=${NTECH_ROOT:-$COMPUTED_ROOT}

name=cfengine-selenium-tests

time docker build -t $name -f "${NTECH_ROOT}/mission-portal/ci/Dockerfile-$name" "${NTECH_ROOT}/mission-portal" 
