github.com/brandonstevens/terraform@v0.9.6-0.20170512224929-5367f2607e16/examples/azure-vnet-two-subnets/deploy.mac.sh (about) 1 #!/bin/bash 2 3 set -o errexit -o nounset 4 5 if docker -v; then 6 7 # generate a unique string for CI deployment 8 export KEY=$(cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-z' | head -c 12) 9 export PASSWORD=$KEY$(cat /dev/urandom | env LC_CTYPE=C tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | env LC_CTYPE=C tr -cd '0-9' | head -c 2) 10 11 /bin/sh ./deploy.ci.sh 12 13 else 14 echo "Docker is used to run terraform commands, please install before run: https://docs.docker.com/docker-for-mac/install/" 15 fi