Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some smoke testing to docker image
and correct the entrypoint file to correctly exec and use a shell that exists on the base alpine image
- Loading branch information
Dan Buch
committed
Sep 18, 2016
1 parent
3a89066
commit de31552
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ "${1:0:1}" = '-' ]; then | ||
set -- travis-worker "$@" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
main() { | ||
[[ ${DOCKER_DEST} ]] || { | ||
__log error="missing \$DOCKER_DEST" | ||
exit 1 | ||
} | ||
|
||
set -o xtrace | ||
docker run --rm "${DOCKER_DEST}" --version &>/dev/null | ||
docker run --rm "${DOCKER_DEST}" travis-worker --version &>/dev/null | ||
docker run --rm "${DOCKER_DEST}" --help &>/dev/null | ||
docker run --rm "${DOCKER_DEST}" travis-worker --help &>/dev/null | ||
} | ||
|
||
__log() { | ||
echo "time=$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$@" | ||
} | ||
|
||
main "$@" |