#!/bin/sh set -e dest=$1 if [ -z "$dest" ]; then echo "usage: $0 " exit 1 fi json=$(cat config.json) source "$(dirname $0)/build.sh" echo $json | docker run \ -i \ --rm \ -v $dest:/tmp/output \ 18fgsa/s3-resource-simple \ /opt/resource/in /tmp/output