-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Make podman-compose refer to podman-compose(1) when using an external provider #23074
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
Make podman-compose refer to podman-compose(1) when using an external provider #23074
Conversation
Seems the build is failing due to tests which really shouldn't be necessary for a man page? Please lmk if any further action is required on my part. |
@@ -13,6 +13,8 @@ The default compose providers are `docker-compose` and `podman-compose`. If ins | |||
|
|||
If you want to change the default behavior or have a custom installation path for your provider of choice, please change the `compose_provider` field in `containers.conf(5)`. You may also set the `PODMAN_COMPOSE_PROVIDER` environment variable. | |||
|
|||
By default, `podman-compose` will emit a warning when using an external compose provider (such as `docker-compose`). This warning can be disabled by setting `compose_warning_logs` to false in `containers.conf(5)` or setting the `PODMAN_COMPOSE_WARNING_LOGS` environment variable to false. See the man page for `containers.conf(5)` for more information. |
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.
I believe this should be podman compose
podman-compose and docker-compose are both two external commands.
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.
Example given in #22904 is /usr/local/bin/docker-compose which is why I used that example. Having podman-compose being referred to as "External compose provider" when invoking podman compose seems ... Confusing, at best, to me - but I'm open to change :) Could it be more vendor neutral? Perhaps something like
"By default, podman compose
will emit a warning when using an external compose provider. [...]"?
Also please squash the commits and rebase |
d667f1e
to
701c54f
Compare
@marinmo Can you please squash the commits (and fix the missing sign-of line with that) |
701c54f
to
3e38027
Compare
Think that was a rather crude fix on my side, my git skills are lacking unfortunately. Squashed but accidentally left both comments intact. Rebased main (albeit after force pushing - does it matter?). |
git commit -a --amend -s |
Change the warning message at runtime to refer to the man page of podman-compose instead of "the documentation" Add instructions in the man page on how to disable the warning emitted by podman-compose when using an external compose provider Signed-off-by: marinmo <[email protected]>
3e38027
to
02af4f8
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, marinmo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you. |
/lgtm |
@@ -13,6 +13,8 @@ The default compose providers are `docker-compose` and `podman-compose`. If ins | |||
|
|||
If you want to change the default behavior or have a custom installation path for your provider of choice, please change the `compose_provider` field in `containers.conf(5)`. You may also set the `PODMAN_COMPOSE_PROVIDER` environment variable. | |||
|
|||
By default, `podman compose` will emit a warning saying that it executes an external command. This warning can be disabled by setting `compose_warning_logs` to false in `containers.conf(5)` or setting the `PODMAN_COMPOSE_WARNING_LOGS` environment variable to false. See the man page for `containers.conf(5)` for more information. |
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 seems that the PODMAN_COMPOSE_WARNING_LOGS
is not actually handled?
This PR is meant to fix #22904. It makes the warning message emitted by podman-compose when using an external provider point to podman-compose(1) which is also updated to include instructions on how to disable said message.
Does this PR introduce a user-facing change?