Skip to content

feat(dashmate): upgrade docker compose to v2 - #441

Merged
pshenmic merged 29 commits into
v0.23-devfrom
feat/docker-compose-v2
Jun 28, 2022
Merged

feat(dashmate): upgrade docker compose to v2#441
pshenmic merged 29 commits into
v0.23-devfrom
feat/docker-compose-v2

Conversation

@pshenmic

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Docker has introduced new Docker Compose v2 engine few years ago, which is now bundled with Docker and does not require installing additional packages. There is a completely new and rewritten core engine in Go that also features a lot of new cool things. Along with that, older v1 docker-compose binaries will soon become deprecated. The syntax of the commands switched to docker compose instead of docker-compose, and legacy commands.

Previously, you had to enable this feature to use v2. But now it is enabled out of the box on every system, and since its inconvenient to tell users to install outdated tools and we already require Docker v20.10+, we can safely migrate to new commands.

This upgrade will keep our project up to date with latest Docker features and also will remove the require of installing additional tools like docker-compose.

What was done?

  • Forked docker-compose package to our github and made changes to make it work with V2
  • Fixed one behaviour in dashmate and make it use our new forked docker-compose package

How Has This Been Tested?

Locally, and via platform-test-suite on CI (test are passing)

Breaking Changes

No breaking changes from the users perspective. Any commands stayed the same, while internally it uses the new engine.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lgtm-com

lgtm-comBot commented Jun 20, 2022

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging a63acb9 into a9fd1b9 - view on LGTM.com

new alerts:

  • 4 for Superfluous trailing arguments

@pshenmic
pshenmicforce-pushed the feat/docker-compose-v2 branch from a63acb9 to 16b35ffCompareJune 20, 2022 06:58
@pshenmic
pshenmic marked this pull request as draft June 20, 2022 07:12
@pshenmic

Copy link
Copy Markdown
ContributorAuthor

Original PRs are #422 (was reverted) and #433
I combined it in single PR and changed base branch to v23-dev

@pshenmic
pshenmic marked this pull request as ready for review June 21, 2022 07:08
shumkov
shumkov previously approved these changes Jun 21, 2022
Comment threadpackages/dashmate/src/docker/DockerCompose.js Outdated
Comment threadpackages/dashmate/src/docker/DockerCompose.js Outdated
@shumkov
shumkov dismissed their stale reviewJune 21, 2022 08:48

Ops.. mixed up

@thephezthephez added this to the v0.23.0 milestone Jun 22, 2022
@pshenmic
pshenmic requested a review from shumkovJune 22, 2022 23:49
Comment threadpackages/dashmate/src/docker/DockerCompose.js Outdated
@pshenmic
pshenmic requested a review from shumkovJune 23, 2022 08:14
shumkov
shumkov previously approved these changes Jun 23, 2022

@shumkovshumkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! 👍

@shumkovshumkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 👍

@pshenmic
pshenmic merged commit 3d7a45f into v0.23-devJun 28, 2022
@pshenmic
pshenmic deleted the feat/docker-compose-v2 branch June 28, 2022 14:19
Sign up for freeto 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.

3 participants

@pshenmic@shumkov@thephez