podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Could you please publish a new release?

Open rugk opened this issue 2 years ago • 11 comments

Could you please publish a new release?

This would really help as issues like https://github.com/containers/podman-compose/issues/504 with podman 4 are solved now and only a release is needed to publish them for all people.

rugk avatar Jul 05 '22 11:07 rugk

the current devel branch introduces the following "different" experience

  1. puts containers in a single pod
  2. have custom systemd unit to start and stop the entire stack

I want to include the following in the final release

  1. get the dependency PR merged
  2. get the systemd right, and make sure it can be global or user
  3. get the exit codes right

muayyad-alsadi avatar Jul 05 '22 22:07 muayyad-alsadi

Hmm? All versions before v1.0.3 (or v1.0.0 in general?) had the same "different" experience AFAIK, as https://github.com/containers/podman-compose/issues/504 shows, i.e. they used a single pod (you could just not disable that then) and (thus?) had one systemd unit to start and stop the pod (i.e. whole stack), if I understand that correctly.

So v1 was more of a breaking change than what you currently have in devel, but I have not tested the devel version and thus this is only my judgement from what I've read and tried with v1.

Anyway, sure, let's rather get stuff being done properly than rushing to put out an update. I am just asking, because, as I said, I have a breaking change that is already fixed in devel (said https://github.com/containers/podman-compose/issues/504) and I very much would like to use it. But again, sure, take what it needs, it does not help if something else breaks then…

rugk avatar Jul 05 '22 22:07 rugk

Sorry if it sounds like I'm stealing this issue, I just don't see value in duplicating my request.

I also would like to see a new release published, because I have been using the RPM version packaged on Fedora 36, which is based on 1.0.3, but that release is missing #394 (merged after the release), which is required to make VS Code understand it can use podman-compose, instead of docker-compose.

For anyone who might need to get here via Google: when you try to run VS Code with a docker-compose file, you get "Docker Compose is required" error, because it's missing the option added by #394.

badnetmask avatar Jul 21 '22 19:07 badnetmask

@muayyad-alsadi Those sound like breaking changes. Would there be a major version bump? I think it would make sense to make that behavior optional via flags. After all, didn't v1 do the opposite, to match docker-compose's behavior and nothing more by default? Another breaking change would be painful, especially since EPEL 9 just added podman-compose and I presume there is a policy there of not bumping the major version during a RHEL cycle. I think those who rely on pod and systemd behavior are not using podman-compose in a Docker-compatible way in the first place, so they can and should explicitly specify additional behavior if they wish, or they can just use podman's own tools directly.

mohd-akram avatar Aug 05 '22 12:08 mohd-akram

I'll not push a breaking change without a major jump in version. If I change put all containers in 1 pod, it will be compose 1.1.x not 1.0.x.

most likely I'll make the default in 1.0.x is not to put them in one container, so that it won't break current stable release that is 1.0.3

muayyad-alsadi avatar Aug 07 '22 09:08 muayyad-alsadi

Would it be possible to simply add a CLI option to put containers in a pod or not? So you wouldn't need to break the 1.0.3 line and can still provide the option for people to use pods.

rmeissn avatar Aug 08 '22 12:08 rmeissn

yes, indeed, in the current devel branch the option is --no-pod I need to make it something like --in-pod=yes|no (or --with-pod) and default to no for 1.0.x

muayyad-alsadi avatar Aug 08 '22 14:08 muayyad-alsadi

I would also :heart: a new release, but for other folks running into the same error I've been debugging all day (for searchers: "Docker Compose required" in vscode), this sorted me out for now:

pip3 install git+https://github.com/containers/podman-compose.git@devel

hunterloftis avatar Aug 15 '22 03:08 hunterloftis

I would also heart a new release, but for other folks running into the same error I've been debugging all day (for searchers: "Docker Compose required" in vscode), this sorted me out for now:

pip3 install git+https://github.com/containers/podman-compose.git@devel

Thank you for this. Digging further, Since devel might change, I'd rather specify an exact commit I can work with, for consistent bahaviour :

pip3 install git+https://github.com/containers/podman-compose.git@9d5b2559274819e3b47230da85d4d306807bb4bf

This is pretty much the same as having a release.

gitouche-sur-osm avatar Aug 28 '22 16:08 gitouche-sur-osm

Also looking forward to the return of pod support as like @rugk, I rely on generated systemd units to start multi-container services.

zachsmith avatar Sep 08 '22 12:09 zachsmith

pip3 install git+https://github.com/containers/podman-compose.git@9d5b2559274819e3b47230da85d4d306807bb4bf

this branch have an old error that affect 1.0.3 too, that it won't create network, at least the output is more explicit than 1.0.3. #552

DevDorrejo avatar Sep 08 '22 13:09 DevDorrejo

Happy new year @muayyad-alsadi, BTW! :tada: I'd be curious about the state of this issue, and if so, what is blocking a release of podman-compose?

rugk avatar Jan 13 '23 21:01 rugk

I've just release 1.0.6

@rugk the latest stable at that time v1.0.3 did not create pods by default, I had to find some time to make 1.0.6 keep same default.

in current stable 1.0.6 --in-pod=0 to keep same old behavior, and new devel defaults to 1 which will be the new default for 1.1.x

muayyad-alsadi avatar Apr 09 '23 11:04 muayyad-alsadi

Thanks a lot! Very happy about this! :smiley: :tada:

rugk avatar Jul 04 '23 20:07 rugk