-
Notifications
You must be signed in to change notification settings - Fork 3
/
install-as-pivotal.sh
executable file
·72 lines (61 loc) · 1.99 KB
/
install-as-pivotal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
set -euo pipefail
cd /home/pivotal || exit 1
# setup home bin
mkdir -p "$HOME/bin"
# fly
wget -O fly "https://networking.ci.cf-app.com/api/v1/cli?arch=amd64&platform=linux"
chmod +x fly
mv fly "$HOME/bin/"
# install asdf
git clone https://github.com/asdf-vm/asdf.git /home/pivotal/.asdf --branch v0.8.0
source "/home/pivotal/.asdf/asdf.sh"
# install asdf packages
plugins=(
'kustomize'
'kind'
'clusterctl'
'ruby'
)
for plugin in ${plugins[*]}
do
asdf plugin-add "${plugin}"
done
asdf plugin-add kubebuilder https://github.com/virtualstaticvoid/asdf-kubebuilder.git
plugins+=('kubebuilder')
for plugin in ${plugins[*]}
do
asdf install "${plugin}" latest
version=$(asdf list "${plugin}")
echo "${plugin} ${version}" >> "/home/pivotal/.tool-versions"
done
git clone --depth 1 https://github.com/junegunn/fzf.git /home/pivotal/.fzf
/home/pivotal/.fzf/install --key-bindings --completion --no-update-rc
# go get stuff
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:/home/xander/.local/bin:$HOME/go/bin/
go get -u github.com/dbellotti/cf-target
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega/...
# vim-go dependencies so you don't have to run :GoInstallBinaries
# source: https://github.com/fatih/vim-go/blob/master/plugin/go.vim#L42
go get github.com/klauspost/asmfmt/cmd/asmfmt
go get github.com/go-delve/delve/cmd/dlv
go get github.com/kisielk/errcheck
go get github.com/davidrjenni/reftools/cmd/fillstruct
go get github.com/rogpeppe/godef
go get golang.org/x/tools/cmd/goimports
go get golang.org/x/lint/golint
GO111MODULE=on go get golang.org/x/tools/[email protected]
go get github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/fatih/gomodifytags
go get golang.org/x/tools/cmd/gorename
go get github.com/jstemmer/gotags
go get golang.org/x/tools/cmd/guru
go get github.com/josharian/impl
go get honnef.co/go/tools/cmd/keyify
go get github.com/fatih/motion
go get github.com/koron/iferr
go get github.com/google/addlicense
# gems
gem install bundler cf-uaac