tenfourfox/testing/docker/tester-device/build.sh
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

23 lines
306 B
Bash
Executable File

#! /bin/bash -ve
while getopts "t:g:" arg; do
case $arg in
t)
TAG=$OPTARG
;;
g)
GAIA_TESTVARS=$OPTARG
;;
esac
done
pushd $(dirname $0)
test $TAG
test -f "$GAIA_TESTVARS"
cp $GAIA_TESTVARS data/gaia_testvars.json
docker build -t $TAG .
rm -f data/gaia_testvars.json