-
Notifications
You must be signed in to change notification settings - Fork 793
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
deb: explicitly install docker-ce-cli, scan-plugin, and docker-ce #235
Conversation
5771251
to
eeace91
Compare
@chris-crone @glours PTAL |
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 ran a quick test with an Ubuntu container and it worked as expected. I didn't have a chance to test the version code path though
eeace91
to
a5a7d55
Compare
rebased, after #236 was merged |
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.
Tested the version path a bit and LGTM!
install.sh
Outdated
command_exists() { | ||
command -v "$@" > /dev/null 2>&1 | ||
} | ||
|
||
# is_at_least_version checks if the version specified in $VERSION is at least |
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.
oh! forgot to update this comment (renamed the function at some point); let me fix
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.
done 👍
The scripts is using "--no-install-recommends" to provide a more minimal install, and to prevent installing "latest" version of (e.g.) the engine when installing the CLI. This patch: - adds some utilities to compare versions - skips CLI-version discovery on older versions (before 18.09) which did not have separate packages for the CLI - on versions 20.10 and up (or if no version was specified), also install the scan cli plugin (support for cli plugins was added in docker 19.03, but not installing on that version by default)) Signed-off-by: Sebastiaan van Stijn <[email protected]>
a5a7d55
to
92cec07
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
internal ticket: POS-27
supersedes / replaces #195 (except for the "containerd.io" part)
closes #195
The scripts is using "--no-install-recommends" to provide a more minimal install, and to prevent installing "latest" version of (e.g.) the engine when installing the CLI.
This patch: