This is a sample that I drafted with the idea of showing how to create a brand new VDC in vCloud Air (or any vCloud Director instance that supports this operational model). In addition, I have added the import and deployment of an OVA with some networking tweaks to show how to go from nothing to SSH into it.
This sample script does the following (in details):
This script is provided as a sample for you to customize based on your own needs.
It makes heavy usage of vca-cli.
If everything goes well, this sample allows you to ssh into the public IP (as reported) of the VM and start using Docker on a Photon OS host. At the time of this writing, Photon OS Technical Preview 2 is the latest version available.
This is the list of software the script expects to find on the system it runs on (with the version I have tested):
Note: jq needs to be at version 1.5 (I am brute forcing the download of the jq 1.5 executable in the script to be sure). Previous versions are known not to work with this script.
You also need to have a valid vCloud Air account
./CreateVDCvCloudAir.sh
Apache Licensing version 2