-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update compose ps command to show container hash for DC v2.14 #770
Conversation
I was able to avoid the first build error by updating
I assume we need to merge this first to get a green build: #744 |
Yes unless Spryker tests are skipped. |
73b68cb
to
42c50d3
Compare
@@ -77,7 +77,7 @@ dynamic_console() | |||
{ | |||
if console_enabled; then | |||
# ensure it is started | |||
if [ -z "$("${COMPOSE_BIN[@]}" ps --quiet console)" ]; then | |||
if [ -z "$("${COMPOSE_BIN[@]}" ps --quiet --all console)" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erm, not actually relevant here as its not started if it's not started, but as it's only reproducing same behaviour as before, there's no new bug
* inviqa/harness-base-php#727 * inviqa/harness-base-php#760 * inviqa/harness-base-php#752 * inviqa/harness-base-php#717 * inviqa/harness-base-php#777 * inviqa/harness-base-php#686 * inviqa/harness-base-php#713 * inviqa/harness-base-php#770 * inviqa/harness-base-php#759 * inviqa/harness-base-php#707 - except v2 rather than v1
* inviqa/harness-base-php#727 * inviqa/harness-base-php#760 * inviqa/harness-base-php#752 * inviqa/harness-base-php#717 * inviqa/harness-base-php#777 * inviqa/harness-base-php#686 * inviqa/harness-base-php#713 * inviqa/harness-base-php#770 * inviqa/harness-base-php#759 * inviqa/harness-base-php#707 - except v2 rather than v1
* inviqa/harness-base-php#727 * inviqa/harness-base-php#760 * inviqa/harness-base-php#752 * inviqa/harness-base-php#717 * inviqa/harness-base-php#777 * inviqa/harness-base-php#686 * inviqa/harness-base-php#713 * inviqa/harness-base-php#770 * inviqa/harness-base-php#759 * inviqa/harness-base-php#707 - except v2 rather than v1
* inviqa/harness-base-php#727 * inviqa/harness-base-php#760 * inviqa/harness-base-php#752 * inviqa/harness-base-php#717 * inviqa/harness-base-php#777 * inviqa/harness-base-php#686 * inviqa/harness-base-php#713 * inviqa/harness-base-php#770 * inviqa/harness-base-php#759 * inviqa/harness-base-php#707 - except v2 rather than v1
Background
It seems that the behaviour of
docker-compose ps --quiet
has changed from v2.13 to v2.14 ofdocker-compose
In v1 this command would return the stopped containers, but in v2.14 it only returns the containers if they are running.
The fix is to use the
--all
flag. With that the command lists all stopped containers.Changes
--all
flag to alldocker-compose ps
commands inenable.sh