#!/bin/sh set -e source=$1 bucket=$2 if [ -z "$source" ] || [ -z "$bucket" ]; then echo "usage: $0 " exit 1 fi docker build -t 18fgsa/s3-resource-simple . json="{\"source\": {\"bucket\": \"$bucket\"}}" echo $json | docker run \ --env-file .env \ -i \ --rm \ -v $source:/tmp/input \ 18fgsa/s3-resource-simple \ /opt/resource/out /tmp/input