From a7be7d47ed5bb4c3bd312c7be0bc27d1e1299af0 Mon Sep 17 00:00:00 2001 From: Gaurav Agarwal Date: Fri, 12 Jul 2019 11:47:10 +0530 Subject: [PATCH] Updating install scripts. --- code-samples/10-docker-compose/install.sh | 9 +++++++-- code-samples/11-kubernetes/README.md | 14 ++++++++++++++ code-samples/11-kubernetes/install.sh | 4 ++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/code-samples/10-docker-compose/install.sh b/code-samples/10-docker-compose/install.sh index ded6d79..daa8d18 100755 --- a/code-samples/10-docker-compose/install.sh +++ b/code-samples/10-docker-compose/install.sh @@ -2,8 +2,13 @@ echo "Installing docker-compose..." -sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose + +sudo mv /tmp/docker-compose /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose -sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose +sudo ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose + +echo "Installation complete! Please verfiy using: " +echo " docker-compose version" diff --git a/code-samples/11-kubernetes/README.md b/code-samples/11-kubernetes/README.md index 40f76fc..8777c43 100644 --- a/code-samples/11-kubernetes/README.md +++ b/code-samples/11-kubernetes/README.md @@ -4,6 +4,20 @@ ![Kubernetes](https://upload.wikimedia.org/wikipedia/commons/b/be/Kubernetes.png) +## Setup + +```bash + ./install.sh +``` + +## Getting Started + +```bash + minikube start --vm-driver=kvm2 + + kubectl version +``` + ## Resources In-browser Hands-on: [Playground](https://training.play-with-kubernetes.com/kubernetes-workshop/) diff --git a/code-samples/11-kubernetes/install.sh b/code-samples/11-kubernetes/install.sh index 854264d..d776dee 100755 --- a/code-samples/11-kubernetes/install.sh +++ b/code-samples/11-kubernetes/install.sh @@ -37,5 +37,5 @@ chmod +x docker-machine-driver-kvm2 sudo mv docker-machine-driver-kvm2 /usr/local/bin/ echo "Installation done! Please verfiy by running..." -echo "kubectl version" -echo "minikube version" +echo " minikube version" +echo " kubectl version"