corda/sgx-jvm/dependencies/build_in_image.sh
2017-03-24 18:23:04 +00:00

13 lines
256 B
Bash

#!/bin/bash
set -euo pipefail
if [ $# -ne 1 ]; then
echo "Usage: build_in_image.sh <DOCKER_IMAGE>"
exit 1
fi
IMAGE=$1
DOCKER_BUILD_DIR=/tmp/corda-sgx-build
exec docker run -v $PWD/../..:$DOCKER_BUILD_DIR $IMAGE make -C $DOCKER_BUILD_DIR/sgx-jvm