istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/builder/README.md (about)

     1  # Sample builder
     2  
     3  This folder contains docker image building logic for various samples, to consolidate things.
     4  Note some images still user per-folder config, so this is not complete.
     5  
     6  ## Building for testing
     7  
     8  To build all images and push them:
     9  
    10  ```bash
    11  docker buildx bake --push
    12  ```
    13  
    14  This will push to `localhost:5000` by default, which you can override with `HUB=localhost:5000`.
    15  It will also build `linux/amd64,linux/arm64` which you can override with `PLATFORMS`.
    16  
    17  You can also build a set of images instead of all of them:
    18  
    19  ```bash
    20  docker buildx bake --push examples-helloworld-v1 tcp-echo-server
    21  ```
    22  
    23  ## Updating images
    24  
    25  When updating images, increment the version for the image in the `tags` config.
    26  You will also want to update the sample YAMLs
    27  
    28  ## Building official images
    29  
    30  Set `HUB=docker.io/istio` for official image builds.
    31  Its best to only do this once for each image to avoid accidentally mutating existing images.