[master] deb/rpm define dependencies between docker-ce-cli and docker-compose-plugin #555
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #553
With this change, the compose-cli-plugin will automatically be installed as dependency of the cli.
deb: add docker-compose-plugin as "recommends"
This adds a "weak" dependency on the docker-compose-plugin, per the
recommendations in https://debian-handbook.info/browse/stable/sect.package-meta-information.html#id-1.8.6.7.10.10
The "recommends" dependency will be installed by default, but does allow users to opt-out
using
--no-install-recommends
to perform a lightweight installation for setups that onlyneed basic functionality of docker;
rpm: add docker-compose-plugin as "recommends" / "requires"
This defines the dependency between the docker cli and compose (as a plugin). RHEL8
and CentOS 8 (and up) support weak dependencies;
But CentOS 7 and RHEL 7 do not yet support this, so for those, we use "Requires",
using the
%rhel
macro for detection, which also works on CentOS:Making the dependency recommended will install it by default, but users are able
to opt-out explicitly, using
--setopt=install_weak_deps=False
, for example, toperform a light-weight installation that does not require all features of Docker.