Skip to content

hack/install: Update docker-cli source, add missing platforms#44214

Closed
vvoland wants to merge 3 commits intomoby:masterfrom
vvoland:hack-installer-dockercli
Closed

hack/install: Update docker-cli source, add missing platforms#44214
vvoland wants to merge 3 commits intomoby:masterfrom
vvoland:hack-installer-dockercli

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Sep 28, 2022

Since the docker-ce repo is deprecated, change the source repository used for building the cli to docker/cli.
The cli will also be built from source, if the binary download fails.
Add platforms which binaries are available on the download.docker.com, but are missing in the installer.
Also, added a fallback to building the cli from source when the binary download fails.

- A picture of a cute animal (not mandatory but encouraged)

turtle

@vvoland vvoland requested a review from tianon as a code owner September 28, 2022 15:51

: ${DOCKERCLI_CHANNEL:=stable}
: ${DOCKERCLI_VERSION:=17.06.2-ce}
: ${DOCKERCLI_VERSION:=18.06.3-ce}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do we have to stick to the -ce versions here, or could it be the current 20.10.18?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There should be no requirement to use -ce as far as I know -- 20.10.18 should be perfectly safe.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Discussed in maintainer's call: we can't go too new as the deprecated integration-cli tests in this repo will not function with a newer CLI. This is a fine stepping stone, but in the medium term we should install a pinned old CLI (and freeze it) until the integration-cli tests can be migrated to API tests or CLI e2e tests. In the long term, we should remove the CLI from this repo entirely except as a convenience feature for the defcontainer.

@vvoland vvoland requested a review from thaJeztah September 28, 2022 15:53
@vvoland vvoland force-pushed the hack-installer-dockercli branch from ffe8f05 to a0c7b30 Compare September 29, 2022 08:10
@vvoland vvoland force-pushed the hack-installer-dockercli branch from a0c7b30 to 9b86951 Compare September 29, 2022 08:53
Copy link
Copy Markdown
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

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

LGTM, though I would prefer a newer version


: ${DOCKERCLI_CHANNEL:=stable}
: ${DOCKERCLI_VERSION:=17.06.2-ce}
: ${DOCKERCLI_VERSION:=18.06.3-ce}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There should be no requirement to use -ce as far as I know -- 20.10.18 should be perfectly safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants