Welcome to the new 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.

[email protected]:~/test/sonobuoy$
~/.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:

[email protected]:~/test/sonobuoy$ cd; mkdir ~/bin
[email protected]:~$ curl -sL -o ~/bin/gimme \

[email protected]:~$ ls -l ~/bin/gimme
-rw-r--r-- 1 ashish ashish 27275 Sep 10 08:30 /home/ashish/bin/gimme
[email protected]:~$ chmod +x ~/bin/gimme
[email protected]:~$ ~/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"
[email protected]:~$ export GOPATH=$PATH

[email protected]:~$ go get -u -v github.com/heptio/sonobuoy
github.com/heptio/sonobuoy (download)
github.com/heptio/sonobuoy/pkg/buildinfo
github.com/heptio/sonobuoy/vendor/k8s.io/apimachinery/pkg/selection

github.com/heptio/sonobuoy/vendor/k8s.io/client-go/util/integer


github.com/heptio/sonobuoy/pkg/client/results
github.com/heptio/sonobuoy/pkg/client
github.com/heptio/sonobuoy/cmd/sonobuoy/app
github.com/heptio/sonobuoy

Comments

  • Moved to LFD259.

  • 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.

    Regards,

  • 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.

    Regards,

Sign In or Register to comment.