You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
458 B
Bash
21 lines
458 B
Bash
#!/bin/bash
|
|
|
|
# Dependencies
|
|
add-apt-repository ppa:git-core/ppa -y
|
|
echo "Updating..."
|
|
apt-get update
|
|
apt-get install -y curl git bison make mercurial
|
|
|
|
# Go
|
|
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
|
source ~/.gvm/scripts/gvm
|
|
gvm install go1.14
|
|
gvm use go1.14
|
|
|
|
# rqlite
|
|
mkdir -p rqlite
|
|
cd rqlite
|
|
export GOPATH=$PWD
|
|
go get github.com/rqlite/rqlite/...
|
|
ln -s $GOPATH/bin/rqlited /usr/local/bin/rqlited
|