Skip to content

Support creating pods with --infra=true #442

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

Closed
jayache80 opened this issue Mar 1, 2022 · 3 comments
Closed

Support creating pods with --infra=true #442

jayache80 opened this issue Mar 1, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@jayache80
Copy link

jayache80 commented Mar 1, 2022

Is your feature request related to a problem? Please describe.

When creating a pod, podman-compose is currently hard-coded to pass --infra=false. However, if it is desired to generate systemd service units from a pod, the podman will not do so unless the pod was created with --infra=true

Describe the solution you'd like

Provide a command line argument such that, if a pod is being created, allow the user to choose whether --infra=true or --infra=false is passed to the podman pod create command.

@jayache80 jayache80 added the enhancement New feature or request label Mar 1, 2022
@muayyad-alsadi
Copy link
Collaborator

muayyad-alsadi commented Mar 8, 2022

I've just pushed a fix, you can pass whatever pod creation arguments you want. the current default is --infra=false --share= you can make it --infra=true --share= or whatever you like

it's used like this

podman-compose --no-pod up -d

or

podman-compose --pod-args='--infra=true --share=""' up -d

@florinandone
Copy link

Looking at https://github.com/containers/podman-compose/tags there is no tag after December 2021, and this was implemented in March 2022 .

Is there any plan for a new release?
Can someone help with that?
Otherwise, what is the easiest way to take this?

@muayyad-alsadi
Copy link
Collaborator

we have release podman 1.0.6 with --in-pod=0 or --in-pod=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants