Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 01_install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ fi
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install yarn nodejs -y

# Install go dep command. The packaged version is too old. This is for development only atm.
export GOPATH=$HOME/go
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than hard-coding this, should we either do eval "$(go env)" or source ocp_install_env.sh which already does that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to eval "$(go env)"

mkdir -p $GOPATH/go/bin
curl -o /tmp/install-go-dep.sh https://raw.githubusercontent.com/golang/dep/master/install.sh
chmod 755 /tmp/install-go-dep.sh
/tmp/install-go-dep.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of the tmp file, how about

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this has been obsoleted by #139 which did exactly that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, #139 takes care of installing dep and operator-sdk.