Skip to content

Commit

Permalink
add run_sample.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsdave committed Jan 26, 2019
1 parent 54515ae commit 9257907
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cloudfeaster/samples/run_sample.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -e

if [ $# -lt 2 ]; then
echo "usage: $(basename "$0") <docker-image> <spider> [<arg1> <arg2> ... <argN>]" >&2
exit 1
fi

DOCKER_IMAGE=${1:-}
shift
SPIDER=${1:-}
shift

docker run \
--rm \
--security-opt seccomp:unconfined \
"$DOCKER_IMAGE" \
spiderhost.sh "cloudfeaster.samples.$SPIDER" "$@"

exit 0

0 comments on commit 9257907

Please sign in to comment.