mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Dockerfile: use TARGETPLATFORM to build Docker
Better support for cross compilation so we can fully rely on `--platform` flag of buildx for a seamless integration. This removes unnecessary extra cross logic in the Dockerfile, DOCKER_CROSSPLATFORMS and CROSS vars and some hack scripts as well. Non-sandboxed build invocation is still supported and dev stages in the Dockerfile have been updated accordingly. Bake definition and GitHub Actions workflows have been updated accordingly as well. Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -150,10 +150,10 @@ can take over 15 minutes to complete.
|
||||
Removing bundles/
|
||||
|
||||
---> Making bundle: binary (in bundles/binary)
|
||||
Building: bundles/binary-daemon/dockerd-17.06.0-dev
|
||||
Created binary: bundles/binary-daemon/dockerd-17.06.0-dev
|
||||
Copying nested executables into bundles/binary-daemon
|
||||
|
||||
Building bundles/binary-daemon/dockerd (linux/amd64)...
|
||||
Created binary: bundles/binary-daemon/dockerd
|
||||
Building bundles/binary-daemon/docker-proxy (linux/amd64)...
|
||||
Created binary:bundles/binary-daemon/docker-proxy
|
||||
```
|
||||
|
||||
7. Run `make install`, which copies the binary to the container's
|
||||
|
||||
@@ -123,7 +123,7 @@ Try this now.
|
||||
4. Run the tests using the `hack/make.sh` script.
|
||||
|
||||
```bash
|
||||
# hack/make.sh dynbinary binary cross test-integration test-docker-py
|
||||
# hack/make.sh dynbinary binary test-integration test-docker-py
|
||||
```
|
||||
|
||||
The tests run just as they did within your local host.
|
||||
@@ -132,11 +132,11 @@ Try this now.
|
||||
just the integration tests:
|
||||
|
||||
```bash
|
||||
# hack/make.sh dynbinary binary cross test-integration
|
||||
# hack/make.sh dynbinary binary test-integration
|
||||
```
|
||||
|
||||
Most test targets require that you build these precursor targets first:
|
||||
`dynbinary binary cross`
|
||||
`dynbinary binary`
|
||||
|
||||
|
||||
## Run unit tests
|
||||
|
||||
Reference in New Issue
Block a user