-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
63 lines (50 loc) · 1.6 KB
/
install.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
set -ex
curl http://download.tarantool.org/tarantool/1.7/gpgkey | sudo apt-key add -
release=`lsb_release -c -s`
# install https download transport for APT
sudo apt-get -y install apt-transport-https
# append two lines to a list of source repositories
sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
sudo tee /etc/apt/sources.list.d/tarantool_1_7.list <<- EOF
deb http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main
deb-src http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main
EOF
# install
sudo apt-get update
sudo apt-get -y install tarantool
TMPDIR=/tmp
pushd $TMPDIR
git clone http://luajit.org/git/luajit-2.0.git
cd luajit-2.0/
git checkout v2.1
make && sudo make install
ln -sf /usr/local/bin/luajit-2.1.0-beta3 /usr/local/bin/luajit
popd
pushd $TMPDIR
git clone --recursive https://github.com/Sulverus/tdb
cd tdb
make
make install prefix=/usr/lib/tarantool/
tarantoolctl rocks install shard
tarantoolctl rocks install document
tarantoolctl rocks install prometheus
tarantoolctl rocks install queue
tarantoolctl rocks install expirationd
tarantoolctl rocks install connpool
tarantoolctl rocks install http
apt install -y luarocks
luarocks install lua-capnproto
luarocks install redis-lua
luarocks install yaml
luarocks install penlight
luarocks install luasec
luarocks install luatweetnacl
luarocks install lua-cjson
luarocks install luafilesystem
luarocks install siphash --from=http://mah0x211.github.io/rocks/
apt install -y libsodium-dev
luarocks install symmetric
apt install -y libb2-dev
luarocks install --from=http://mah0x211.github.io/rocks/ blake2
#NEED TARANTOOL INSTALL
popd