-
Notifications
You must be signed in to change notification settings - Fork 8
π§Ή Code Health: wait for started event using --wait in docker-compose up
#1197
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
daa5e60
π§Ή Code Health: Use --wait instead of -d in docker compose up
skevetter 830791c
π§Ή Code Health: Use --wait instead of -d in docker compose up
skevetter 3fc1b7e
π§Ή Code Health: Use --wait instead of -d in docker compose up
skevetter 4418c69
π§Ή Code Health: Use --wait instead of -d in docker compose up
skevetter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
π©Ί Stability & Availability | π Major | ποΈ Heavy lift
π Supported by static analysis
π Script executed:
Repository: devsy-org/devsy
Length of output: 9419
π Script executed:
Repository: devsy-org/devsy
Length of output: 19413
π Web query:
Docker Compose V1 docker-compose up --wait option official documentationπ‘ Result:
The --wait option is a feature of Docker Compose V2 and is not available in Docker Compose V1 [1]. Docker Compose V1, which uses the docker-compose command, was a standalone Python-based tool and did not include this functionality [1]. The --wait flag was introduced in the rewritten, Go-based Docker Compose V2 (invoked via the docker compose command) to allow the up command to block until services are running or healthy [2][3][4]. When used, it implies detached mode and waits for services to reach a healthy stateβor, if no healthcheck is configured, it considers them ready once they are running [2][4]. Accompanying this is the --wait-timeout option, which specifies the maximum duration in seconds to wait for the project to reach that state [2][4][5]. If you are using a command starting with docker-compose, you are likely using V1 and will not have access to these flags [1]. To use --wait, you should transition to the modern docker compose CLI (V2) [2][6].
Citations:
π Script executed:
Repository: devsy-org/devsy
Length of output: 19288
π Script executed:
Repository: devsy-org/devsy
Length of output: 1042
Keep the V1 startup path compatible.
NewComposeHelpercan selectdocker-composeV1, whilecomposeUpAndFindContaineralways passesup --waittoComposeHelper.Run. Docker Compose V1 does not support--wait, so startup fails before the devcontainer starts. Require Compose V2 or retain a V1-compatible startup and wait path.π€ Prompt for AI Agents