Last active
April 9, 2021 01:39
-
-
Save b0noI/976965689610e9cb0b8a8bcf7fe46bff 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 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