Skip to content

Instantly share code, notes, and snippets.

@nrupatunga
Forked from b0noI/start_ide.sh
Created March 25, 2021 05:56
Show Gist options
  • Save nrupatunga/94ce6168953a59790920bfde637be3e3 to your computer and use it in GitHub Desktop.
Save nrupatunga/94ce6168953a59790920bfde637be3e3 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