mirror of
https://github.com/openziti/ziti.git
synced 2026-10-08 22:01:15 +00:00
Building and Deploying the Latest Quickstart Docker Image
==========================
First, decide what you are trying to do. Are you trying to:
- build a
zitifrom source, bake it into a docker image, and run the docker container? - dev on the scripts inside the docker container, or the Dockerfile/compose file?
- build an 'older' version of
zitiinto a docker image to run
Build Docker Image for Local Dev
- build the
zitiCLI somewhere - change to this directory from checkout root:
cd quickstart/docker - make a directory named
ziti-bin:mkdir ./ziti-bin - copy the
zitiCLI to./ziti-bin:cp /path/to/ziti ./ziti-bin - run the script
./createLocalImage.shwhich will create aopenziti/quickstart:latesttag using thezitiCLI located in./ziti-bin- Optionally, you may provide an argument for the image tag.
./createLocalImage.sh <tagname>
- Optionally, you may provide an argument for the image tag.
Build Docker Image for Docker-related Changes
- change to this directory from checkout root:
cd quickstart/docker - run the script
./createLocalImage.shwhich will create aopenziti/quickstart:latesttag using the latestzitirelease from GitHub- Optionally, you may provide an argument for the image tag.
./createLocalImage.sh <tagname>
- Optionally, you may provide an argument for the image tag.
Build Docker Image with Specific ziti Version
- change to this directory from checkout root:
cd quickstart/docker - set
ZITI_VERSION_OVERRIDEto desired version:export ZITI_VERSION_OVERRIDE=v0.28.4 - run the script
./createLocalImage.shwhich will create aopenziti/quickstart:latesttag using the specified version ofzitifrom GitHub- Optionally, you may provide an argument for the image tag.
./createLocalImage.sh <tagname>
- Optionally, you may provide an argument for the image tag.
ERROR: existing instance for "ziti-builder"
When running the ./createLocalImage.sh script, you might get this error:
ERROR: existing instance for "ziti-builder" but no append mode, specify --node to make changes for existing instances
It's probably safest to just remove the buildx builder using:
docker buildx rm ziti-builder
Build Docker Image For Publication
To publish the latest ziti CLI, use the GitHub Action.
It's preferable to use main as the branch to create the docker image from, but it's
perfectly fine to use 'release-next' as the source if there are script-related changes that need
to be pushed out faster than waiting for a merge to main.