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

fix(CLI): CLI support for Docker v2.24.6 by removing inheritance from docker-compose files #1025

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

samwillis
Copy link
Contributor

Fixes #1018

This removes the inheritance from the docker compose files. There are now two mostly duplicated compose files, with the "with-postgres" file have this addition for the electric service:

depends_on:
      - postgres

Not pretty, but works and is far less likely to break with future versions of Docker.

@samwillis samwillis requested a review from msfstef March 4, 2024 11:03
Copy link
Contributor

@msfstef msfstef left a comment

Choose a reason for hiding this comment

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

looks good to me!

services:
electric-no-postgres:
init: true
stop_signal: SIGINT # use SIGINT as the more speedy alternative to SIGTERM
Copy link
Contributor

Choose a reason for hiding this comment

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

should we replicate the init and stop_signal configurations on the new compose files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good spot!

@samwillis samwillis merged commit 85daa6e into main Mar 4, 2024
7 checks passed
@samwillis samwillis deleted the samwillis/VAX-1705 branch March 4, 2024 12:00
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.

service "electric-with-postgres" can't be used with extends as it declare depends_on
2 participants