s3-resource-simple/script/run
Aidan Feldman f1a98f3e9a pass the AWS credentials through the Concourse source data
Concourse pipelines dont have a way of setting environment variables,
and this is consistent with how https://github.com/concourse/s3-resource
works.
2016-03-10 10:57:12 -05:00

21 lines
313 B
Bash
Executable file

#!/bin/sh
set -e
source=$1
if [ -z "$source" ]; then
echo "usage: $0 </full/path/to/dir/or/file>"
exit 1
fi
json=$(cat .env.json)
docker build -t 18fgsa/s3-resource-simple .
echo $json | docker run \
-i \
--rm \
-v $source:/tmp/input \
18fgsa/s3-resource-simple \
/opt/resource/out /tmp/input