docker-duplicity-cron/test.sh

16 lines
308 B
Bash
Raw Normal View History

2017-06-29 01:12:49 +00:00
#! /bin/bash
image_name=$1
tag=$2
full_image="${image_name}:${tag}"
container_name="${image_name}-${tag}"
# Run the test script within the container
docker run --rm \
-e SKIP_ON_START=true \
-v "$(pwd)/itest.sh:/itest.sh" \
--name ${container_name} \
$full_image \
bash -c "/itest.sh"