Back to K3s

Setup Go Environment

docs/release/expanded/setup_env.md

1.15.3-k3s.3736 B
Original Source

Setup Go Environment

These steps are expected for using the scripts and ecm_distro tools for release.
Some of these steps are for properly setting up Go on your machine, some for Docker, and Git.

Git

  1. install Git (using any method that makes sense
  2. Configure Git for working with GitHub (add your ssh key, etc)

Go

  1. install Go from binary
  2. set up default Go file structure
    1. create $HOME/go/src/github.com/<your user>
    2. create $HOME/go/src/github.com/k3s-io
    3. create $HOME/go/src/github.com/rancher
    4. create $HOME/go/src/github.com/rancherlabs
    5. create $HOME/go/src/github.com/kubernetes
  3. set GOPATH=$HOME/go

Docker

  1. install Docker (or Docker desktop) using whatever method makes sense