src/ClusterBootstrap/step_by_step.sh
platform=$1
if [ $platform == "azure" ]; then
  ./deploy.py -y build
  ./az_tools.py create
  ./az_tools.py genconfig
  ./deploy.py runscriptonroles infra worker ./scripts/prepare_vm_disk.sh
elif [ $platform == "onpremise" ]; then
  echo "make sure that you've run ./deploy.py build and set the correct ssh keys in deploy/sshkey before run this script"
fi
./deploy.py nfs-server create
./deploy.py runscriptonroles infra worker ./scripts/prepare_ubuntu.sh
./deploy.py runscriptonroles infra worker ./scripts/disable_kernel_auto_updates.sh
./deploy.py runscriptonroles infra worker ./scripts/docker_network_gc_setup.sh
./deploy.py runscriptonroles infra worker ./scripts/disable_mlocate.sh
./deploy.py genscripts
./deploy.py runscriptonroles infra worker ./scripts/dns.sh
./deploy.py runscriptonroles infra worker ./scripts/install-blobfuse.sh
./deploy.py -y deploy
./deploy.py -y updateworkerinparallel
./deploy.py -y kubernetes labels
./deploy.py -y gpulabel
./deploy.py labelsku
./deploy.py webui
./deploy.py docker push restfulapi
./deploy.py docker push watchdog
./deploy.py docker push gpu-reporter
./deploy.py docker push reaper
./deploy.py docker push job-exporter
./deploy.py docker push init-container
./deploy.py docker push dashboard
./deploy.py docker push user-synchronizer
./deploy.py mount
./deploy.py kubernetes start nvidia-device-plugin
./deploy.py kubernetes start flexvolume
./deploy.py kubernetes start mysql
./deploy.py kubernetes start jobmanager
./deploy.py kubernetes start restfulapi
./deploy.py kubernetes start monitor
./deploy.py kubernetes start dashboard
./deploy.py kubernetes start user-synchronizer
./deploy.py --sudo runscriptonrandmaster ./scripts/pass_secret.sh
./deploy.py runscriptonroles worker scripts/pre_download_images.sh