Created
March 12, 2019 03:38
-
-
Save Kr0n0/2eddf08f7796f9b09cd0d44d590539e8 to your computer and use it in GitHub Desktop.
Basic cloud-init for installing Google Cloud SDK, Tensorflow GPU Docker Image and KubeCTL
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
#cloud-config | |
write_files: | |
- path: /etc/apt/sources.list.d/google-cloud-sdk.list | |
content : deb http://packages.cloud.google.com/apt cloud-sdk-bionic main | |
runcmd: | |
- 'docker pull tensorflow/tensorflow:latest-gpu-py3 ' | |
- 'curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -' | |
- 'apt-get update && apt-get install -y google-cloud-sdk kubectl' | |
- 'gcloud --quiet components update' | |
final_message: "Cloud-init finished." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment