1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/bin/bash
set -e
if [[ -n "${STACTOOLS_DEBUG}" ]]; then
set -x
fi
source $(dirname "$0")/env
function usage() {
echo -n \
"Usage: $(basename "$0")
Run the stactools CLI in a docker container. Mounts the source
directory inside the container, so any edits to the repository
will be reflected in the execution.
"
}
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
docker run --rm -it \
-v `pwd`:/opt/stactools \
$DOCKER_REGISTRY/$DOCKER_ORG/$DOCKER_REPO:$DOCKER_TAG "${@}"
fi
|