Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Pre Work

Trevor Rosen edited this page Dec 12, 2019 · 23 revisions

There are a collection of things to install prior to being able to use the code in this repo. This shouldn't take longer than half an hour or so.

NOTE TO WINDOWS USERS

  • Please install the Chocolatey package manager if you don't have it already.
  • Run your commands in a Powershell prompt as admin
  • Be sure to alter your Docker settings to use Linux containers

1. Go

macOS

brew install go

Windows


2. Git

macOS

(should already be installed)

Windows

Install the official binary


3. Docker

If you already have Docker, make sure it's a version recent enough to have Kubernetes

Be sure to activate Kubernetes in settings!

macOS

Install Docker Desktop for Mac

Windows

Install Docker Desktop for Windows


4. This Repo!

We'll be working with branches in this repo, so clone it into the proper location in the $GOPATH.

macOS

mkdir $GOPATH/src/github.com/solarwinds
cd $GOPATH/src/github.com/solarwinds
git clone [email protected]:solarwinds/k8slessons

Windows

mkdir $env:GOPATH\src\github.com\solarwinds
cd $env:GOPATH\src\github.com\solarwinds
git clone [email protected]:solarwinds/k8slessons

5. Mage

Mage is a Make-like build tool that simplifies working with Go projects on multiple platforms.

macOS

go get -u -d github.com/magefile/mage
cd $GOPATH/src/github.com/magefile/mage
go run bootstrap.go

Windows

After installation, you'll want to make sure that $GOPATH\bin is in your PATH so you don't have to reference the fully qualified filesystem path to run the mage command.

go get -u -d github.com/magefile/mage
cd $env:GOPATH\src\github.com\magefile\mage
go run bootstrap.go

6. Kubectl

macOS

brew install kubectl

Windows

choco install kubernetes-cli


7. Helm

We will be using the Kubernetes package manager Helm during some of the hands-on portion of our workshop:

macOS

brew install kubernetes-helm

Windows

choco install kubernetes-helm --version=2.13.0

After installation, you must install Tiller, the server side component (Kubernetes must be active):

helm init


8. Postman

Postman is a front-end to Curl. Download and install the proper version for your platform. Or alternatively, use any tool that will make it easy for you to send a payload of JSON data to an HTTP endpoint.


9. Pull Docker Images

Pull these early so you don't have to wait for them during the workshop!

  • docker pull redis
  • docker pull golang:1.13
  • Build this image -- go into the directory where you have this repo and checkout the first branch (git checkout lesson0/0-getting-started), and run: docker build -t dumbstore:latest .