Enable use global config.

This commit is contained in:
Achim D. Brucker 2021-01-16 13:16:24 +00:00
parent 67cc9b43c4
commit a80fd4d3c4
1 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2019 Achim D. Brucker
# Copyright (c) 2019-2021 Achim D. Brucker
#
# All rights reserved.
#
@ -27,11 +27,21 @@
set -e
if [ -f ../../config ]; then
source ../../config
else
CONFIG=`git rev-parse --show-toplevel`/config
if [ -f $CONFIG ]; then
source $CONFIG
fi
fi
if [ -z "$ISADOF_VERSION" ] ; then
IMAGE="isabelle_dof"
else
IMAGE="isabelle_dof-"$ISADOF_VERSION"_isabelle2019"
fi
$CONTAINER build -t logicalhacking/$IMAGE . \
--build-arg isadof_version="$ISADOF_VERSION"
$CONTAINER build --build-arg isadof_version="$ISADOF_VERSION" \
-t $IMAGE_NAME