mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
376c633c62
Adding ability to run external router This is going to need to be overhauled with the new quickstart cleanup but I think this a good feature to have as we are currently in the works of adding a function to add an external router for non-docker so this will allow the two to have similar functionality. Documentation will have to be added but that should wait until the cleanup branch is merged in since all the variables will change.
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 - If you encounter any strange errors, it's probably best to prune docker
and try again. Issue
docker system prune -aand allow it to clear/cleanup the entire docker world
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