diff --git a/quickstart/docker/README.md b/quickstart/docker/README.md index 9285d4072..7b2cd1002 100644 --- a/quickstart/docker/README.md +++ b/quickstart/docker/README.md @@ -1,21 +1,20 @@ -Quick Start Up and Running +Building and Deploying the Latest Quickstart Docker Image ========================== Build Docker Image ------------------ - -1. Copy Ziti binaries into ziti/quickstart/docker/image/ziti.ignore/ - -2. Build image: - - $ cd ziti/quickstart/docker - $ docker-compose build - -3. Start Ziti Environment - - $ docker-compose up -d - -4. Clean Up - - $ docker-compose down; docker volume prune /y; docker volume rm docker_ziti-fs - +1. change to this directory: `cd quickstart/docker` +1. set an environment variable: `export ZITI_HOME=$(pwd)` +1. source the helper script: `source ../ziti-cli-functions.sh` +1. cleanup the binary directory if it exists: `rm -rf ./image/ziti.ignore` +1. issue this function to pull the latest ziti binaries: `getLatestZiti` +1. move the ziti binaries: `mv ziti-bin/ziti image/ziti.ignore/` +1. build the docker image: `docker build image -t openziti/quickstart` +1. exec into a container and make sure it's the version you expect: `docker exec --rm -it openziti/quickstart ziti version` +1. cleanup: `rm ziti-*tar.gz; rm -rf ziti-bin` +2. +Push Docker Image to dockerhub +------------------ +1. retag the image locally to match the expected version: `docker push openziti/quickstart:0.19.3` +1. push the latest: `docker push openziti/quickstart` +1. push the versioned tag: `docker push openziti/quickstart:0.19.3`