mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
- Repo names: ziti-* → zt-* - Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt - Docker images: hanzozt/ziti-* → hanzozt/zt-* - C/Java/JS symbols: ziti_* → zt_* - File and directory names updated
2.2 KiB
2.2 KiB
Building and Deploying the Latest Quickstart Docker Image
==========================
First, decide what you are trying to do. Are you trying to:
- build a
ztfrom 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
ztinto a docker image to run
Build Docker Image for Local Dev
- change to this directory from checkout root:
cd quickstart/docker - run the script
./createLocalImage.sh --buildwhich will create ahanzozt/quickstart:latesttag using theztCLI located in./image/zt-bin- Optionally, you may provide an argument for the image tag.
./createLocalImage.sh --build <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 ahanzozt/quickstart:latesttag using the latestztrelease from GitHub- Optionally, you may provide an argument, e.g.,
./createLocalImage.sh <tagname>, to create a tag other thanlatest.
- Optionally, you may provide an argument, e.g.,
Build Docker Image with Specific zt Version
- change to this directory from checkout root:
cd quickstart/docker - set
ZITI_VERSION_OVERRIDEto a version >= 0.29.0 (prior versions used a different build path) - run the script
ZITI_VERSION_OVERRIDE=0.29.0 ./createLocalImage.shwhich will create ahanzozt/quickstart:latesttag using the specified version ofztfrom GitHub- Optionally, you may provide an argument, e.g.,
ZITI_VERSION_OVERRIDE=0.29.0 ./createLocalImage.sh <tagname>, to create a tag other thanlatest.
- Optionally, you may provide an argument, e.g.,
Build Docker Image For Publication
To publish the latest zt 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.