Skip to content

Commit c8ceaee

Browse files
committed
added tests/test_docker.sh
1 parent 6a94cd7 commit c8ceaee

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/test_docker.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
# vim:ts=4:sts=4:sw=4:et
3+
#
4+
# Author: Hari Sekhon
5+
# Date: 2016-12-08 14:38:37 +0000 (Thu, 08 Dec 2016)
6+
#
7+
# https://github.com/harisekhon/nagios-plugins
8+
#
9+
# License: see accompanying Hari Sekhon LICENSE file
10+
#
11+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
#
13+
# https://www.linkedin.com/in/harisekhon
14+
#
15+
16+
set -euo pipefail
17+
[ -n "${DEBUG:-}" ] && set -x
18+
srcdir="$(cd "$(dirname "$0")" && pwd)"
19+
20+
cd "$srcdir/.."
21+
22+
. "bash-tools/docker.sh"
23+
24+
section "Docker Image"
25+
26+
export DOCKER_IMAGE="harisekhon/pytools"
27+
28+
if is_docker_available; then
29+
docker pull "$DOCKER_IMAGE"
30+
#docker run "$DOCKER_IMAGE" welcome.py
31+
docker run "$DOCKER_IMAGE" tests/all.sh
32+
fi

0 commit comments

Comments
 (0)