-
Notifications
You must be signed in to change notification settings - Fork 311
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
Use the docker-compose-plugin via 'docker compose' instead of 'docker-compose' #975
Conversation
This link is dead https://puppetlabs.github.io/iac/docs/contributing_to_a_module.html |
|
I've done some basic manual testing of this now, both with a fresh start of a compose project and with a running compose project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to focus on a single point for each PR (to minimize the changes to review) with commits that change a single aspect at a time (to make review easier).
For example 91ab09c does multiple things:
- It updates PDK-related files (IMHO this should not be part of this PR unless if it fix CI failure)
- It update lib/puppet/provider/docker_compose/ruby.rb to remove unused code (which should be part of this PR).
Do you think you can rework this PR and adjust the commits you add on top of #975 to only finish the work that was started by @davidphay, ignoring the PDK stuff, and without the merge commit? Maybe it is enough to have the CI green 😉
Thanks!
Sure I can do those things. Please fix your CONTRIBUTING.md. |
I've made a proper mess by reverting commits that I'd merged. I'll figure out a better way. |
32dd642
to
6277484
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A rebase on main will get rid of the merge commit.
There are changes in early commits that are then removed in later commits. It would be good to clean up the commit history.
b6ababd
to
21d48a1
Compare
Aren't changes to previous commits the nature of applying requested changes? Besides remaking the branch and PR altogether I'd have to really stretch my git abilities to make it appear such that it was all done as desired from the beginning. |
I suppose maybe you want me to squash the commits together selectively? I can try that. |
Looking into squashing it, I'm not sure that will comply with "commits that change a single aspect at a time". I won't do anything without further advisement. |
Use interactive rebase to edit the commit history. I'm not saying squash all of the changes into one commit, unless that is what makes the most sense. |
e82d6bd
to
97efd64
Compare
Unfortunately it really only made sense to me to make it into a single commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The be_include
to include
changes should be a separate commit, since they are unrelated to the other changes.
A couple of comments, otherwise looks good.
97efd64
to
ece0e8d
Compare
I removed the |
Looks OK, just need to get someone from Perforce to approve the workflow run to see test results. |
Nice work! I'm curious about this change too! |
I've realized that my problem is not with the standalone Perhaps upgrading the default installed version of the standalone docker-compose may be a preferable path forward? Either way I think I am leaning towards closing this PR unless someone with Windows Server knowledge sees a different path forward for it. |
@nathanlcarlson standalone docker-compose has been deprecated for a while (if I'm understanding you correctly), so I don't think there is any upgrading to do for that. |
IMHO default versions are not great because bumping them is a backwards-incompatible change, so it basically never happens. When they are installed as packages, the default value of
💯 I understand there are 2 issues here:
Improving the installation method being backwards-incompatible, changing the version it install by default looks fine to me. Upgrading to the next major version of the modules for users of docker-compose would require to:
This feels reasonable to me. |
@kenyon Ahh, yes, I see that the Docker site reports it as "not recommended and is only supported for backward compatibility purposes". I've applied some changes that attempt to repair and cleanup the acceptance tests. |
is there something that could be done to help to move this forward? |
I was waiting for @smortex to reply on my response to their comments. I can clean up duplicate code, but I made a couple points about the other comments. |
Dang! Too many notifications :-) I don't "own" the code, so feel free to add changes which allow other contributors to provide feedback too, and do not wait for me as my availability is somewhat sparse currently :-D I will reply at the right location to your points. |
Any news here? Any help needed? Would be great to get this finally resolved. |
These changes include updates to the docker compose related code and tests. Install compose as plugin on linux Simplify compose install clean class compose_spec.rb Fix linting issue Since all usage of dockercompose is now replaced by docker, this line can be removed Fix syntax and indentation Use the package resource directly
373a33f
to
053c64e
Compare
I've pushed some commits that attempt to make the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some tests with this code on a node where I use docker_compose
, worked for me!
Summary
Use the docker-compose-plugin via 'docker compose' instead of 'docker-compose'
From https://docs.docker.com/compose/install/
Additional Context
Based on #902. Created my own PR to hopefully get this resolved sooner.
Related Issues (if any)
#891
Checklist
puppet apply
)