-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support Docker Compose V2 #115
Comments
Hi @sonnguyent2, I've switched to compose, do you mind give it a try at https://github.com/MihaMarkic/Cake.Docker/tree/feature/compose2 or I could create a prerelease package for you. |
Hi @MihaMarkic thanks for your response, I have tried to build the code but get this error: |
@sonnguyent2 I see, fixed. It should compile now. |
@MihaMarkic yes, its compiled but still got error. Root cause come from the order of command arguments. This command will work: |
@sonnguyent2 Hm, good catch, I guess. I have to verify, but I suppose you are correct. Also I wouldn't expect that orders of arguments matter. |
@sonnguyent2 Can you try with latest sources? Commit: 0bcf83c |
Note: I've separated the two settings into DockerComposeSettings and command specific one. |
Hi, Any news on this ? According to this issue it seems the standalone docker-compose (aka v1) is being retired from ubuntu runners starting this month and we are already seeing runners without it. I'd be happy to help. Best Regards, |
@silex-victor I created a commit and asked you to give it a try - see a my answer above... |
(Just for the record i was not the original other of this issue) I'm unable to make it work with the sources from the branch you mentionned and be able to reference the sources / nupkg from our build.cake file, is there documentation somwhere on how to achieve this ? If it's easy on your side, could you publish a prerelease build from your branch (as mentionned in this comment so I could test it on my side and come back to you ? Best Regards, |
Ok so it seems I was able to make it work referencing the dll itself by using |
@silex-victor Will publish a prerelease, sorry for the delay |
@silex-victor @sonnguyent2 Released in 1.4.0-beta.1, can you give it a try? |
Hi, Sorry for the delay as I have been out of the office for a long time (and thus this account). I can confirm that the 1.4.0-beta.1 is compiling and working without any change, but I believe something changed regarding nullable annotations as I see these warnings when update the package to target the pre-release version:
I confirm that they are not present when using version 1.3.0. I'm available if you need anything else. Best Regards, Edit: Formatting |
Currently DockerComposeBuild still use Compose V1 instead of V2. It requires to install docker-compose package. Do you have any plan to migrate to Compose V2?
The text was updated successfully, but these errors were encountered: