Created
February 21, 2018 16:21
-
-
Save carlosedp/0e72aab68c89ca5accc6ad9c14d11a87 to your computer and use it in GitHub Desktop.
Revisions
-
carlosedp created this gist
Feb 21, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ #!/bin/bash echo "Container Linux installation script" echo "This will install:" echo " - Docker Community Edition" echo " - Docker Compose" echo " - Kubernetes: kubeadm, kubelet and kubectl" echo "" set -xeo pipefail apt-get update -y apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository \ "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) \ stable" curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - cat <<EOF >/etc/apt/sources.list.d/kubernetes.list deb http://apt.kubernetes.io/ kubernetes-xenial main EOF apt-get update -y apt-get install -y docker-ce docker-compose kubelet kubeadm kubectl