-
Notifications
You must be signed in to change notification settings - Fork 1
Pre Work
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
brew install go
- Follow official Windows installation instructions
- Set your $GOPATH
(should already be installed)
If you already have Docker, make sure it's a version recent enough to have Kubernetes
Be sure to activate Kubernetes in settings!
Install Docker Desktop for Mac
Install Docker Desktop for Windows
We'll be working with branches in this repo, so clone it into the proper location in the $GOPATH.
mkdir $GOPATH/src/github.com/solarwinds
cd $GOPATH/src/github.com/solarwinds
git clone [email protected]:solarwinds/k8slessons
mkdir $env:GOPATH\src\github.com\solarwinds
cd $env:GOPATH\src\github.com\solarwinds
git clone [email protected]:solarwinds/k8slessons
Mage is a Make-like build tool that simplifies working with Go projects on multiple platforms.
go get -u -d github.com/magefile/mage
cd $GOPATH/src/github.com/magefile/mage
go run bootstrap.go
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
brew install kubectl
choco install kubernetes-cli
We will be using the Kubernetes package manager Helm during some of the hands-on portion of our workshop:
brew install kubernetes-helm
choco install kubernetes-helm --version=2.13.0
After installation, you must install Tiller, the server side component (Kubernetes must be active):
helm init
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.
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 .