2016-03-10 09:01:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
source=$1
|
|
|
|
|
|
|
|
if [ -z "$source" ]; then
|
|
|
|
echo "usage: $0 </full/path/to/dir/or/file>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-03-10 09:20:05 +01:00
|
|
|
docker build -t 18fgsa/s3-resource-simple .
|
2016-03-10 09:01:02 +01:00
|
|
|
|
|
|
|
docker run \
|
|
|
|
--env-file .env \
|
|
|
|
--rm \
|
|
|
|
-v $source:/tmp/input \
|
2016-03-10 09:20:05 +01:00
|
|
|
18fgsa/s3-resource-simple \
|
2016-03-10 09:01:02 +01:00
|
|
|
/opt/resource/out /tmp/input
|