Skip to content
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

Add "procps" to daemon "Recommends" (for "docker top") #509

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

tianon
Copy link
Contributor

@tianon tianon commented Nov 19, 2020

Hi! This is adjusting the dependencies for docker-ce and docker-ce-cli -- moving git to Recommends on the latter (because these days, dockerd should only be shelling out to git as a not-recommended-for-use backwards compatibility measure) and adding procps (which is needed for docker top and given it's only Priority: important not essential, might not be installed).

Both of these do belong in Recommends: (not Depends:) because they're both related to technically optional behavior of the CLI (although behavior that's common enough to warrant Recommends: instead of Suggests: so most users get them automatically).

I'm guessing there are more items in this list of Recommends: for docker-ce that should also move, but I'm not personally up-to-date enough to recognize them offhand (libltdl7?). Happy to adjust/include them if someone else knows more reliably! ❤️

(Directly inspired by bottlerocket-os/bottlerocket#1210; @samuelkarp ❤️)

@tianon
Copy link
Contributor Author

tianon commented Nov 19, 2020

(and for the avoidance of doubt, yes, I did run this file through wrap-and-sort to ensure the formatting was consistent with what it prefers before submitting 😅)

samuelkarp
samuelkarp previously approved these changes Nov 20, 2020
@thaJeztah
Copy link
Member

@tonistiigi ptal

@tonistiigi
Copy link
Member

Git is required for docker build to work. In legacy builder it is a requirement on both client and daemon side. In buildkit, only daemon side.

deb/common/control Outdated Show resolved Hide resolved
@tianon
Copy link
Contributor Author

tianon commented Nov 23, 2020

Git is required for docker build to work. In legacy builder it is a requirement on both client and daemon side. In buildkit, only daemon side.

This is hugely surprising to me -- there are a lot of benefits to what was implemented in moby/moby#4364, the primary one being moby/moby#2715.

@thaJeztah
Copy link
Member

@tianon had a chat about that with Tonis, and with buildkit the ssh-agent can be forwarded to the daemon, so giving the best of both worlds (git clone directly at the daemon side, without having to clone client-side and then sending), and the credentials not leaving the client.

@tonistiigi
Copy link
Member

Building from git is very important, not only for performance but for properly tracking build sources for remote caching and future inspection, repeatability and replay features. Having no client-side dependencies is also important for the language extensibility and for supporting different environments where builds can be invoked. Building from git is the preferred way to invoke a build and we'll only make it more common over time.

The implementation itself may change in the future, eg. if there is movement with moby/buildkit#1048 , but atm it relies on a git package dependency.

@tianon tianon changed the title Move "git" and add "procps" to "Recommends" for CLI package Add "procps" to daemon "Recommends" (for "docker top") Dec 8, 2020
@tianon
Copy link
Contributor Author

tianon commented Dec 8, 2020

Updated to only add procps (and updated PR title/description accordingly).

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah
Copy link
Member

bringing this one in

@thaJeztah thaJeztah merged commit 120831d into docker:master Mar 24, 2021
@tianon tianon deleted the cli-deps branch March 24, 2021 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants