official-images/test/tests/perl-hello-world/run.sh

9 lines
212 B
Bash
Executable File

#!/bin/bash
set -e
image="$1"
dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
dirContainer='/usr/src/perl'
docker run -it --rm -v "$dirTest":"$dirContainer" -w "$dirContainer" "$image" perl hello-world.pl