use /bin/sh instead of /bin/bash in order to support dockerfile images that don't include bash. fixes #1364

This commit is contained in:
Michael Hobbs
2015-08-03 11:40:30 -07:00
parent 466df88660
commit 8edea8512d
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ verify_image() {
is_image_buildstep_based() {
# circleci can't support --rm as they run lxc in lxc
[[ ! -f "/home/ubuntu/.circlerc" ]] && local DOCKER_ARGS="--rm"
docker run --entrypoint="/bin/bash" $DOCKER_ARGS "$@" -c "[[ -f /exec ]]"
docker run --entrypoint="/bin/sh" $DOCKER_ARGS "$@" -c "test -f /exec"
}
is_number() {

View File

@@ -12,7 +12,7 @@ case "$1" in
! (is_deployed $APP) && echo "App $APP has not been deployed" && exit 0
for CID in $CONTAINER_IDS; do
docker exec -ti "$CID" /bin/bash -c "ps auxwww"
docker exec -ti "$CID" /bin/sh -c "ps auxwww"
done
;;