Skip to content
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 docker compose scripts for docker compose v2 #23360

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

rschlussel
Copy link
Contributor

@rschlussel rschlussel commented Aug 1, 2024

Description

Update docker compose scripts for docker compose v2, as legacy docker-compose v1 is no longer supported for github actions. There is a migration guide here https://docs.docker.com/compose/migrate/. The changes here are

  1. switching the command from docker-compose to docker compose.
  2. Removing the "version" field from our docker-compose.yml files because it is deprecated and not used in compose v2.
  3. Updating installation instructions to reflect the correct installation instructions for compose v2, thought I didn't try them out myself.

Motivation and Context

Fixes #22413

Github is removing docker compose v1 (the python based docker-compose command) from their github actions runners, so we need to upgrade to use docker compose v2. Without this change, tests that run on the new runners fail with "docker-compose: command not found". The removal of docker compose v1 began on July 29th and is expected to take 3-4 days, so we can expect to be fully blocked by this issue imminently actions/runner-images#9692.

Impact

Let's our tests run on images that only have docker compose v2

Test Plan

CI

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== NO RELEASE NOTE ==

@rschlussel rschlussel force-pushed the compose-v2 branch 2 times, most recently from 207bca3 to 2f9cabf Compare August 1, 2024 21:07
@rschlussel rschlussel marked this pull request as ready for review August 1, 2024 21:44
@rschlussel rschlussel requested a review from presto-oss August 1, 2024 21:44
@rschlussel rschlussel changed the title [wip] Update docker compose scripts for docker compose v2 Update docker compose scripts for docker compose v2 Aug 1, 2024
Copy link
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A single nit of formatting, looks good otherwise!

@@ -29,15 +29,15 @@ broken.
wget -qO- https://get.docker.com/ | sh
```

* [`docker-compose >= 1.8.1`](https://docs.docker.com/compose/install/)
* [`docker compose >= 2.3.4](https://docs.docker.com/compose/install/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* [`docker compose >= 2.3.4](https://docs.docker.com/compose/install/)
* [`docker compose >= 2.3.4`](https://docs.docker.com/compose/install/)

ZacBlanco
ZacBlanco previously approved these changes Aug 1, 2024
steveburnett
steveburnett previously approved these changes Aug 1, 2024
Copy link
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (docs)

Update docker compose scripts for docker compose v2, as legacy
docker-compose v1 is no longer supported for github actions.
@tdcmeehan tdcmeehan merged commit 4f5c431 into prestodb:master Aug 2, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Failing with docker-compose: command not found
4 participants