Welcome to the Linux Foundation Forum!

How to run sonobuoy? Lab 8.1

I am trying to follow lab 8.1 to run end to end testing. I am not able to follow below line. I have followed till the step to pull source code using go command.

~/.gimme/versions/go1.10.3.linux.amd64/bin/bin/sonobuoy run

Instead of the gimme part used above I have different version and no bin/bin directory.

My output:

ashish@ashish-ubuntu0:~/test/sonobuoy$ cd; mkdir ~/bin
ashish@ashish-ubuntu0:~$ curl -sL -o ~/bin/gimme \

ashish@ashish-ubuntu0:~$ ls -l ~/bin/gimme
-rw-r--r-- 1 ashish ashish 27275 Sep 10 08:30 /home/ashish/bin/gimme
ashish@ashish-ubuntu0:~$ chmod +x ~/bin/gimme
ashish@ashish-ubuntu0:~$ ~/bin/gimme stable

unset GOOS;
unset GOARCH;
export GOROOT='/home/ashish/.gimme/versions/go1.11.linux.amd64';
export PATH="/home/ashish/.gimme/versions/go1.11.linux.amd64/bin:${PATH}";
go version >&2;

export GIMME_ENV="/home/ashish/.gimme/envs/go1.11.env"
ashish@ashish-ubuntu0:~$ export GOPATH=$PATH

ashish@ashish-ubuntu0:~$ go get -u -v github.com/heptio/sonobuoy
github.com/heptio/sonobuoy (download)




  • serewicz
    serewicz Posts: 1,000

    Moved to LFD259.

  • serewicz
    serewicz Posts: 1,000

    It looks like you have missed a step. After ~/bin/gimme stable there are three export commands before the go get command. Examine each command carefully, you'll need to edit from the path to a sub-directory of your user name.


  • serewicz
    serewicz Posts: 1,000

    I've also found that there can be a lot of hassle depending on the version of go (golang-go) you are using. The 1.6 version is a giant hassle. 1.8.3 and later seem to work though the particular version can have various issues. This just worked when using an AWS instance:

    curl -O https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
    tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
    sudo tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
    go version
    export GOROOT=/usr/local/go
    export GOPATH=$HOME/go
    export PATH=$PATH:$GOROOT/bin
    go get -u -v github.com/heptio/sonobuoy

    If you follow some of the URLs in the README.md file the exercise has you look at, such as the heptio website, you can find more details.



Upcoming Training