Last active
January 4, 2017 20:12
-
-
Save szukalski/669dfc7eeb32245b52f31507abda2aa8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 2017-01-04 : Install vsphere-influxdb-go on ubuntu 16.04.1 LTS | |
# Install go | |
apt-get update && apt-get upgrade | |
cd /tmp | |
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz | |
tar -xvf go1.7.4.linux-amd64.tar.gz | |
mv go /usr/local | |
# Prep env | |
mkdir $HOME/go | |
cat <<'EOF' >> $HOME/.profile | |
GOROOT=/usr/local/go | |
GOPATH=$HOME/go | |
GOBIN=$GOPATH/bin | |
PATH=$GOPATH:$GOBIN:$GOROOT/bin:$PATH | |
EOF | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/go | |
export GOBIN=$GOPATH/bin | |
# Install pre-req | |
go get github.com/vmware/govmomi | |
go get github.com/influxdata/influxdb/client/v2 | |
# Install | |
go get github.com/oxalide/vsphere-influxdb-go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment