Example Build¶
This example uses the vh_dbus template from the c3-templates repository to demonstrate a VHT 2.0 image build and registry push.
Clone the Example¶
git clone git@bitbucket.org:veea/c3-templates.git
git checkout feature/VHP-7404-vht-2.0-extensions
cd c3-template/vh_dbus
Note
If the VHT 2.0 template branch or directory layout has moved, use the current vh_dbus VHT 2.0 template location. The build and registry commands below stay the same.
Build for an Insecure Registry¶
Build and push a multi-architecture image:
docker buildx build \
--builder insecure-builder \
--platform linux/amd64,linux/arm/v7,linux/arm64/v8 \
--push -t 192.168.1.29:5001/<namespace>/vh_dbus:latest .
Inspect the pushed manifest:
The --insecure flag is required for an insecure registry.
Build for a Secure Registry¶
Login to Docker Hub:
Or use a PAT from an environment variable:
Build and push:
docker buildx build \
--builder secure-builder-using-public-trusted-certs \
--platform linux/amd64,linux/arm/v7,linux/arm64/v8 \
--push -t docker.io/<namespace>/vh_dbus:latest .
Inspect the pushed manifest:
Expected manifest platforms include linux/amd64, linux/arm/v7, and linux/arm64.