-
Notifications
You must be signed in to change notification settings - Fork 0
/
firstSetupOneMachine.sh
executable file
·48 lines (34 loc) · 1.49 KB
/
firstSetupOneMachine.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
#!/bin/sh
echo "______________________ Installing Tarantool 1.7 and modules(queue, shard, pool) ________________________________"
echo
DIRECTORY=$(pwd)
sudo apt-get install curl cmake gcc libmsgpuck-dev
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 echo "deb http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main" > /etc/apt/sources.list.d/tarantool_1_7.list
sudo echo "deb-src http://download.tarantool.org/tarantool/1.7/ubuntu/ $release main" >> /etc/apt/sources.list.d/tarantool_1_7.list
# install
sudo apt-get update
sudo apt-get -y install tarantool
sudo apt-get install tarantool-dev luarocks
sudo apt-get install tarantool-queue tarantool-connpool tarantool-shard
echo
echo "_______________________ Tarantool and modules successfully installed! ____________________________"
echo
echo "_______________________ Installing Python Async modules ____________________________"
echo
sudo apt-get install python3-pip
sudo pip3 install asyncio aiohttp asynctnt aiohttp_debugtoolbar envparse
echo
echo "_______________________ Python3.6 modules successfully installed ____________________________"
echo
cd $DIRECTORY/oneMachine
sudo ./init.sh
echo
echo
cd ../back/back/aio-server
python3 main.py