Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active April 9, 2021 01:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save b0noI/976965689610e9cb0b8a8bcf7fe46bff to your computer and use it in GitHub Desktop.
Save b0noI/976965689610e9cb0b8a8bcf7fe46bff 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 notebooks instances create "${INSTANCE_NAME}" \
--project="${PROJECT_NAME}" \
--location="${ZONE}" \
--vm-image-project="${IMAGE_PROJECT}" \
--vm-image-family=$IMAGE_FAMILY \
--machine-type="${MACHINE_TYPE}" \
--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