#!/bin/bash

# time ./workshopctl start \
#         --infra infra/azure \
#         --settings settings/docker.yaml \
#         --students 8 \
#         --tag fd-training

#az account set --subscription "8dfca7ea-ec1c-4a74-b461-74524dcc1089"
#time ./workshopctl start \
#        --infra infra/azure \
#        --settings settings/kubernetes.yaml \
#        --students 3 \
#        --tag fd-training-1

#az account set --subscription "6eb31076-acba-4144-aedd-fecb5e19f0cf"
#time ./workshopctl start \
#        --infra infra/azure \
#        --settings settings/kubernetes.yaml \
#        --students 3 \
#        --tag fd-training-2

az account set --subscription "c1ace615-cc92-4997-bade-ac5c9dea68c7"
time ./workshopctl start \
        --infra infra/azure \
        --settings settings/kubernetes.yaml \
        --students 3 \
        --tag fd-training-3



exit 0

# # Everything below is taken care of by settings/docker.yaml

# # Wait until VMs are ready (reachable and cloud init is done)
# time ./workshopctl wait  fd

# # Group VMs in clusters
# time ./workshopctl clusterize  fd

# # Install a bunch of useful tools (editors, git, jq...)
# time ./workshopctl tools  fd

# # Install and start Docker
# time ./workshopctl docker  fd

# # Create the user that students will use
# time ./workshopctl createuser fd

# # Install a WEB SSH server on the machines (port 1080)
# time ./workshopctl webssh fd

# # Install history viewer on port 1088
# time ./workshopctl tailhist fd

# # Setup kubernetes clusters with kubeadm (must be run AFTER deploy)
# time ./workshopctl kube fd

# # Install a bunch of CLI tools for Kubernetes
# time ./workshopctl kubetools fd

# # Install Kubernetes and CNI binaries but don't start anything
# #time ./workshopctl kubetest fd

# # # Check that all nodes are reporting as Ready
# # time ./workshopctl kubetest fd

# # Generate ready-to-print cards for a group of VMs
# time ./workshopctl cards fd

# # Show the IP addresses for a given tag
# time ./workshopctl ips fd


# exit 0
