Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 717748

Summary: app-containers/podman-compose - a script to run docker-compose.yml using podman
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: New packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal CC: admnd, bug, genzilla, holgersson, jesse, joakim.tjernlund, jstein, kevin, marduk, me, rafael.ristovski, Thomas.Doczkal, willy, zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 856940    
Bug Blocks:    
Attachments: podman-compose ebuild from my overlay, for usage inside the gentoo portage tree
podman-compose 1.0.6, python 3_10 and 3_11

Description Dennis Schridde 2020-04-16 19:36:49 UTC
It would be nice to have podman-compose in Gentoo, as an alternative to docker-compose, using app-emulation/podman instead of app-emulation/docker.  It is a Python script installable from PyPI using `pip`.

DESCRIPTION="a script to run docker-compose.yml using podman"
HOMEPAGE="https://github.com/containers/podman-compose"
Comment 1 Nils Freydank 2020-05-26 09:26:18 UTC
Created attachment 641916 [details]
podman-compose ebuild from my overlay, for usage inside the gentoo portage tree
Comment 2 Rahil Bhimjiani 2023-02-18 15:12:35 UTC
Need this for complete podman stack
Comment 3 bugg.gentoo 2023-05-10 17:21:09 UTC
Created attachment 861458 [details]
podman-compose 1.0.6, python 3_10 and 3_11

I would also love to see podman-compose as part of an official repo. I've attached my current podman-compose ebuild, perhaps it will be of use to somone.
Comment 4 Rahil Bhimjiani 2023-05-19 23:33:03 UTC
Our (Gentoo) podman stack is often lagging behind. This is a trivial software that should be in official repos. Are there that few amount of users who use podman on day-to-day basis? This makes me wanna learn python and start contributing to maintain such stacks
Comment 5 Willy Gardiol 2024-02-05 12:04:33 UTC
I am using podman as a better docker replacement and i also would find this very useful in portage.

I am currently using this ebuile posted here https://bugs.gentoo.org/attachment.cgi?id=861458 and works fine.
Comment 6 Jesse Adelman 2024-05-28 18:02:14 UTC
So, this is in Guru, but the current release is 1.1.0 (https://github.com/containers/podman-compose/releases). Not sure if I'm doing the right thing to get the Guru overlay updated by posting here? Thanks.
Comment 7 Willy Gardiol 2024-12-04 07:25:47 UTC
Hi all,
given that "podman-compose" is still actively developed and it's indeed a nice thing to have for people NOT using SystemD, which makes quadlets useless, and who don't want to use the podman socket, which makes docker-compose broken, this is still useful, i think.

Here is the working ebuild for latest (1.2.0) podman-compose:

<code>
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{10..13} )

inherit distutils-r1

DESCRIPTION="Run docker-compose files without root with podman"
HOMEPAGE="https://pypi.org/project/podman-compose https://github.com/containers/podman-compose"
SRC_URI="https://files.pythonhosted.org/packages/bd/67/0f8cf5ef346a22ce73dfdd0e60cf81342329b71a7fc118128929f0c07b62/podman_compose-1.2.0.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="app-containers/podman"
RDEPEND="
        ${DEPEND}
        dev-python/pyyaml[${PYTHON_USEDEP}]
        dev-python/python-dotenv[${PYTHON_USEDEP}]
"
BDEPEND=""

S="${WORKDIR}/podman_compose-${PV}"
</code>
Comment 8 Zac Medico gentoo-dev 2024-12-05 00:31:07 UTC
(In reply to Willy Gardiol from comment #7)
Thanks for the ebuild. We should use DISTUTILS_USE_PEP517=setuptools instead of DISTUTILS_USE_SETUPTOOLS=rdepend, and also it would be best to have working unit tests via distutils_enable_tests unittest, but I tried it and it doesn't work.
Comment 9 Viorel Munteanu gentoo-dev 2024-12-05 08:17:40 UTC
dev-python/podman-compose is in ::guru.  It can be renamed to app-containers/podman-compose and moved to ::gentoo if someone is interested in it.
Comment 10 Willy Gardiol 2024-12-05 09:20:36 UTC
Yes i would absolutely be interested in it, i do use it on my systems, and having it in ::gentoo would be great!
Comment 11 Larry the Git Cow gentoo-dev 2024-12-05 22:27:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eed6e10770ba599475d757930610a4349f483b91

commit eed6e10770ba599475d757930610a4349f483b91
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2024-12-05 22:20:34 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2024-12-05 22:26:54 +0000

    app-containers/podman-compose: new package, add 1.2.0
    
    Import latest ebuild from guru repo.
    
    Closes: https://bugs.gentoo.org/717748
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-containers/podman-compose/Manifest             |  1 +
 app-containers/podman-compose/metadata.xml         | 12 +++++++
 .../podman-compose/podman-compose-1.2.0.ebuild     | 40 ++++++++++++++++++++++
 3 files changed, 53 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2024-12-06 08:32:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=41148541358cbb139ecc413d30b0fc1348ea5af7

commit 41148541358cbb139ecc413d30b0fc1348ea5af7
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-12-06 08:06:37 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-12-06 08:06:37 +0000

    dev-python/podman-compose: treeclean
    
    Moved to ::gentoo as app-containers/podman-compose
    
    Bug: https://bugs.gentoo.org/717748
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 dev-python/podman-compose/Manifest                 |  2 --
 dev-python/podman-compose/metadata.xml             | 12 -------
 .../podman-compose/podman-compose-1.0.6.ebuild     | 33 ------------------
 .../podman-compose/podman-compose-1.2.0.ebuild     | 40 ----------------------
 4 files changed, 87 deletions(-)