Skip to content

Instantly share code, notes, and snippets.

@b0noI
Created March 24, 2021 18:20
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save b0noI/fa356df7e60fdc20ee9b20b42456807a to your computer and use it in GitHub Desktop.
Save b0noI/fa356df7e60fdc20ee9b20b42456807a to your computer and use it in GitHub Desktop.
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