mirror of
https://github.com/openziti/ziti.git
synced 2026-10-08 13:51:22 +00:00
Building and Deploying the Latest Quickstart Docker Image
Build Docker Image for Local Dev (probably for docker-compose testing)
- change to this directory:
cd quickstart/docker - run the script
./buildLocalDev.shwhich will create aopenziti/quickstart:devtag - update
.envand change the value forZITI_VERSIONtodev - run
docker-composeas normal
Build Docker Image For Publication
- change to this directory:
cd quickstart/docker - set an environment variable:
export ZITI_HOME=$(pwd) - source the helper script:
source ../ziti-cli-functions.sh - cleanup the binary directory if it exists:
rm -rf ./image/ziti.ignore - issue this function to pull the latest ziti binaries:
getLatestZiti - move the ziti binaries:
mv ziti-bin/ziti image/ziti.ignore/ - build the docker image:
docker build image -t openziti/quickstart - exec into a container and make sure it's the version you expect:
docker run --rm -it openziti/quickstart ziti version - cleanup:
rm ziti-*tar.gz; rm -rf ziti-bin
Push Docker Image to dockerhub
source ./image/ziti-cli-functions.sh- just run
./pushLatestDocker.sh