Dockerfile/shell: Install buildx cli plugin#44957
Dockerfile/shell: Install buildx cli plugin#44957vvoland wants to merge 1 commit intomoby:masterfrom
Conversation
Installs the buildx cli plugin in the container shell by default. Previously user had to manually download the buildx binary to use buildkit. Signed-off-by: Paweł Gronowski <[email protected]>
|
Silly question; what's buildx used for inside the dev container, or is this intended to be used for e2e tests? As to the |
|
I was wishing for buildx the other day -- I had to manually install it to use our dind environment to test some of the BuildKit-related regressions. Can we block this on splitting the build environment to have both a frozen CLI for integration tests & a current build of the CLI for interactive/debugging use? |
|
@thaJeztah I use it for building images with buildkit (containerd integration only supports buildkit for now) in container shell. It isn't used by any build process/testing. @neersighted Can work on that, looks fun 😄 |
Installs the buildx cli plugin in the container shell by default. Previously user had to manually download the buildx binary to use buildkit.
Note: The default cli in shell is v17.06 (🧓🏻), so you still need to provide a more recent cli that's actually able to use the buildx plugin:
make DOCKER_BUILD_ARGS='--build-arg=DOCKERCLI_VERSION=v20.10.23' shellor
Signed-off-by: Paweł Gronowski [email protected]
- What I did
Made buildx available by default in dev shell container.
- How I did it
Install buildx binary from
docker/buildx-binimage.- How to verify it
$ make DOCKER_BUILD_ARGS='--build-arg=DOCKERCLI_VERSION=v20.10.23' shell ... root@58a62b814982:/go/src/github.com/docker/docker# docker buildx version github.com/docker/buildx v0.10.2 00ed17df6d20f3ca4553d45789264cdb78506e5f- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)