kubernetes / release

Release infrastructure for Kubernetes and related components
Apache License 2.0
487 stars 503 forks source link

[question] about how to build images locally #3436

Closed zijin520 closed 8 months ago

zijin520 commented 9 months ago

What happened:

I am confused about how to build the docker images(go-runner, distroless-iptables, cross. etc.) locally from this README, Is there any document detailed? Thanks.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

saschagrunert commented 9 months ago

Hey @zijin520, thank you for the request.

For go-runner as example, you can run:

> make -C images/build/go-runner container REGISTRY=localhost PLATFORMS=linux/amd64

The resulting images are then prefixed with localhost/:

> docker images | rg localhost
localhost/go-runner-amd64   latest-go1.21-bookworm                        6f992eb02a23   7 seconds ago   3.6MB
localhost/go-runner-amd64   v0.16.4-117-g06d3d14b-dirty-go1.21-bookworm   6f992eb02a23   7 seconds ago   3.6MB
localhost/go-runner-amd64   v2.3.1-go1.21.6-bookworm.0                    6f992eb02a23   7 seconds ago   3.6MB
zijin520 commented 8 months ago

Hey @zijin520, thank you for the request.

For go-runner as example, you can run:

> make -C images/build/go-runner container REGISTRY=localhost PLATFORMS=linux/amd64

The resulting images are then prefixed with localhost/:

> docker images | rg localhost
localhost/go-runner-amd64   latest-go1.21-bookworm                        6f992eb02a23   7 seconds ago   3.6MB
localhost/go-runner-amd64   v0.16.4-117-g06d3d14b-dirty-go1.21-bookworm   6f992eb02a23   7 seconds ago   3.6MB
localhost/go-runner-amd64   v2.3.1-go1.21.6-bookworm.0                    6f992eb02a23   7 seconds ago   3.6MB

Thanks very much. It is very useful .