Added type indexes. Updated vagrant scripts.

This commit is contained in:
Nicolas Dextraze
2016-08-28 13:29:53 -07:00
parent 320cc9e53e
commit a05f21377f
11 changed files with 99 additions and 52 deletions

View File

@ -7,7 +7,7 @@ sudo apt-get install -y git build-essential pkg-config
# Install Golang
cd /usr/local
echo 'Downloading and installing Go 1.6 ...'
curl -s https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | tar xz
curl -s https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz | tar xz
export GOROOT=/usr/local/go
echo 'export GOROOT=/usr/local/go' > /etc/profile.d/go.sh
export GOPATH=~/go
@ -17,18 +17,18 @@ echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile.d/go.sh
# Install zeromq
cd ~
echo 'Downloading libsodium-1.0.10 ...'
curl -s https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz | tar xz
cd libsodium-1.0.10
echo 'Downloading libsodium-1.0.11 ...'
curl -s https://download.libsodium.org/libsodium/releases/libsodium-1.0.11.tar.gz | tar xz
cd libsodium-1.0.11
./configure
make && make check && sudo make install
sudo ldconfig
cd ~
echo 'Downloading zeromq-4.1.4 ...'
curl -s http://download.zeromq.org/zeromq-4.1.4.tar.gz | tar xz
cd zeromq-4.1.4
echo 'Downloading zeromq-4.1.5 ...'
curl -L -s https://github.com/zeromq/zeromq4-1/releases/download/v4.1.5/zeromq-4.1.5.tar.gz | tar xz
cd zeromq-4.1.5
./configure
make && make check && sudo make install

View File

@ -2,7 +2,7 @@
# Install Goes
go get github.com/satori/go.uuid
go get github.com/pebbe/zmq4
go build -o bin/simpleserver simpleserver/simpleserver.go
go build -o bin/goes
sudo mkdir /opt/goes
sudo cp -R bin /opt/goes

View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
/opt/goes/bin/simpleserver --db /var/events &>/var/log/goes.log &
/opt/goes/bin/goes --db /var/events &>/var/log/goes.log &