Skip to content

Commit de92dc5

Browse files
authored
Merge pull request #555 from thaJeztah/compose_cli_package_dependencies
[master]: deb/rpm define dependencies between docker-ce-cli and docker-compose-plugin
2 parents 9d28bec + bb4bd31 commit de92dc5

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

deb/common/control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Package: docker-ce-cli
6363
Architecture: linux-any
6464
Depends: ${shlibs:Depends}
6565
# TODO change once we support scan-plugin on other architectures
66-
Recommends: docker-scan-plugin [amd64]
66+
Recommends: docker-compose-plugin,
67+
docker-scan-plugin [amd64]
6768
Conflicts: docker (<< 1.5~),
6869
docker-engine,
6970
docker-engine-cs,

rpm/SPECS/docker-ce-cli.spec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ Packager: Docker <[email protected]>
1616
# required packages on install
1717
Requires: /bin/sh
1818
Requires: /usr/sbin/groupadd
19+
20+
# CentOS 7 and RHEL 7 do not yet support weak dependencies
21+
#
22+
# Note that we're not using <= 7 here, to account for other RPM distros, such
23+
# as Fedora, which would not have the rhel macro set (so default to 0).
24+
%if 0%{?rhel} == 7
25+
Requires: docker-compose-plugin
26+
%else
27+
Recommends: docker-compose-plugin
28+
%endif
29+
1930
# TODO change once we support scan-plugin on other architectures
2031
%ifarch x86_64
2132
# CentOS 7 and RHEL 7 do not yet support weak dependencies

rpm/SPECS/docker-compose-plugin.spec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ URL: https://github.com/docker/compose/
1212
Vendor: Docker
1313
Packager: Docker <[email protected]>
1414

15+
# CentOS 7 and RHEL 7 do not yet support weak dependencies.
16+
#
17+
# Note that we're not using <= 7 here, to account for other RPM distros, such
18+
# as Fedora, which would not have the rhel macro set (so default to 0).
19+
%if 0%{?rhel} != 7
20+
Enhances: docker-ce-cli
21+
%endif
22+
1523
BuildRequires: bash
1624

1725
%description

0 commit comments

Comments
 (0)