-
-
Save nrupatunga/94ce6168953a59790920bfde637be3e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CONTAINER_URI="gcr.io/deeplearning-platform-release/experimental.theia.1-7" | |
export INSTANCE_NAME=... | |
export PROJECT_NAME=... | |
export IMAGE_PROJECT="deeplearning-platform-release" | |
export IMAGE_FAMILY="theia-container-experimental" | |
export MACHINE_TYPE=... #"n1-standard-4" | |
export ZONE=... #"us-central1-a" | |
gcloud compute instances create "${INSTANCE_NAME}" \ | |
--project="${PROJECT_NAME}" \ | |
--zone="${ZONE}" \ | |
--image-project="${IMAGE_PROJECT}" \ | |
--image-family=$IMAGE_FAMILY \ | |
--machine-type="${MACHINE_TYPE}" \ | |
--boot-disk-size=200GB \ | |
--tags="deeplearning-vm" \ | |
--scopes=https://www.googleapis.com/auth/cloud-platform \ | |
--metadata=install-nvidia-driver=True,proxy-mode=project_editors,container=${CONTAINER_URI},agent-health-check-interval-seconds=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment