-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Support
docker compose
for Docker compose v2 (#36855)
GitHub [has recently announced][1] that they're going to be dropping support for `docker-compose` soon, so at least for our E2E tests we'll need to start running it as `docker compose` instead. Fortunately for the most part we already have that abstracted behind `jetpack docker`, so mostly all we need to do is update that to detect whether `docker compose` is valid and use that in preference to `docker-compose` (but we still need to support the latter for Debian and older Ubuntu). The `check-development-environment.sh` script then also needs to check for `docker compose` rather than just `docker-compose`. Beyond that, it's mainly updating docs to reference the tool by name ("Docker compose") rather than by command. Note this may result in some environments starting to use v2 rather than v1, if they had `docker-compose` as v1 but `docker compose` also works. In such environments people may notice that the container names change from being like "jetpack_dev_wordpress_1" to "jetpack_dev-wordpress-1". Again, we've apparently mostly avoided depending on that in our tooling, but you may need to run `COMPOSE_COMPATIBILITY=1 jetpack docker down` to stop the old-named containers (or just reboot). I note `projects/plugins/super-cache/tests/e2e/package.json` still has some direct references to `docker-compose`, which I didn't update here as that doesn't seem to be used in our CI. [1]: https://github.blog/changelog/2024-04-10-github-hosted-runner-images-deprecation-notice-docker-compose-v1/
- Loading branch information
Showing
7 changed files
with
46 additions
and
25 deletions.
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
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
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
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