Skip to content

Commit

Permalink
feat(debugging) docker output plain when --debug is used
Browse files Browse the repository at this point in the history
This makes it easier to debug the build of the docker image
  • Loading branch information
Tieske committed May 14, 2022
1 parent 37ccded commit 54f511e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@ The result should be a new PR on the Pongo repo.
### unreleased
* the `--debug` flag now also sets docker build command to `--progress plain`
for easier debugging of the build. It also does `set -x` so be careful not
to copy-paste secrets somewhere!!
* Enable SSL for Redis on port `6380`
* Upgrade image `redis:5.0.4-alpine` to `redis:6.2.6-alpine`
Expand Down
8 changes: 8 additions & 0 deletions pongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ function parse_args {
args_done=1
;;
--debug)
PONGO_DEBUG=true
set -x
;;
*)
Expand Down Expand Up @@ -724,8 +725,15 @@ function build_image {
fi

msg "starting build of image '$KONG_TEST_IMAGE'"
local progress_type
if [[ "$PONGO_DEBUG" == "true" ]] ; then
progress_type=plain
else
progress_type=auto
fi
$WINPTY_PREFIX docker build \
-f "$DOCKER_FILE" \
--progress $progress_type \
--build-arg http_proxy \
--build-arg https_proxy \
--build-arg ftp_proxy \
Expand Down

0 comments on commit 54f511e

Please sign in to comment.