k3s/docs/release/expanded/setup_env.md
Matt Trachier 95bb3dce97
adding expanded release docs (#6237)
Signed-off-by: matttrach <matttrach@gmail.com>
2022-12-02 16:27:02 -06:00

737 B

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/
    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