mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-14 17:46:33 +00:00
16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#! /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"
|