#!/usr/bin/env bash

if [ ! -e "./deploy/openregister-java.jar" ]
then
  docker run \
    --rm \
    --volume "$PWD":/usr/src/openregister-java \
    --workdir /usr/src/openregister-java \
    openjdk:8 \
      bash -c "./gradlew stage"
fi

docker-compose up

#!/usr/bin/env bash

if [ ! -e "./deploy/openregister-java.jar" ]
then
  docker run \
    --rm \
    --volume "$PWD":/usr/src/openregister-java \
    --workdir /usr/src/openregister-java \
    openjdk:8 \
      bash -c "./gradlew assemble"
fi

docker-compose up

Make container build use idiomatic gradle
Make container build use idiomatic gradle

The `stage` task seems to be related to deploying to Heroku. It adds
nothing to the `assemble` task. The `assemble` task seems to be a more
commonly used task name for assembling a `.jar`.
