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

[18.09] Fix compose parser fails 3.4+ schema for volume #2317

Open
wants to merge 2 commits into
base: 18.09
Choose a base branch
from

Conversation

diablodale
Copy link

Fixes #2272 on the 18.09 branch. If this PR is merged, I will submit two other identical PRs for the 18.06, 19.03, and master branches

- What I did

- How I did it

Added if conditional to only apply restrictive rule on < 3.4

- How to verify it

- Description for the changelog

fix compose 3.4+ schema rule to allow external volumes with driver, driver_opts, labels

- A picture of a cute animal (not mandatory but encouraged)

photo-1578423185054-3cad37eeb502
Photo by Kerin Gedge on Unsplash

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "fix-loadvol1" git@github.com:diablodale/cli.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354243712
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@diablodale
Copy link
Author

All (2) commits are already signed. GPG signatures in place and valid.

Signed-off-by: Dale Phurrough <dale@hidale.com>
Signed-off-by: Dale Phurrough <dale@hidale.com>
@thaJeztah
Copy link
Member

The DCO check is checking if the commit message has a valid DCO sign-off, see the links in the comment that our bot (@GordonTheTurtle) left above.

Could you open this PR against the master branch? We generally merge changes into master first, and then backport/cherry-pick to release branches.

Note that 18.09 and older reached EOL, and only 19.03 is actively maintained

@codecov-io
Copy link

Codecov Report

Merging #2317 into 18.09 will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##            18.09    #2317      +/-   ##
==========================================
+ Coverage   54.28%   54.28%   +<.01%     
==========================================
  Files         291      291              
  Lines       19459    19461       +2     
==========================================
+ Hits        10563    10565       +2     
  Misses       8215     8215              
  Partials      681      681

@diablodale
Copy link
Author

diablodale commented Feb 10, 2020

OK, its double signed (GPG and the text -s)
My primary number 1 is to get it on the 18.09 branch, see issue for details. If this is denied for the 18.09 branch, then this doesn't help my cause.
What is needed to get this fix into the 18.09 branch?

@thaJeztah
Copy link
Member

I don't think this would be accepted for the 18.09 branch; is there a specific reason you need it for that version? (Given that 18.09 is no longer maintained?) Note that newer versions of the CLI can downgrade to older versions of the API, so should be fully compatible with older daemons.

I'm still trying to grasp the bug in this situation; "external" volumes mean that the specified volume should pre-exist (given that docker only looks up volumes by name, the "driver" should have no meaning there)

@diablodale
Copy link
Author

Details are in the issue. I don't see a question from you not already discussed.

  • reason for need is in issue (other project dependent on this project's library - not the EXE itself)
  • code as is doesn't correctly implement docker-compose 3.4 schema. See details in issue

Happy to answer more, but I need to understand what you don't understand and isn't already written in the issue. :-)

@diablodale
Copy link
Author

Exciting. Please do loop me in if I need to submit PRs for newer branches (or if your team cherry picks this into them).

@thaJeztah
Copy link
Member

thaJeztah commented Nov 6, 2020 via email

@thaJeztah thaJeztah changed the title Fix compose parser fails 3.4+ schema for volume [18.09] Fix compose parser fails 3.4+ schema for volume Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants