-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·16 lines (15 loc) · 872 Bytes
/
test.sh
File metadata and controls
executable file
·16 lines (15 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# curl http://tarantool.org/dist/public.key | sudo apt-key add -
# echo "deb http://tarantool.org/dist/master/ubuntu/ `lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
# sudo apt-get update > /dev/null
sudo docker pull tarantool/tarantool:1.7
sudo docker run --name tarantool -p33013:33013 -d -v `pwd`/test:/opt/tarantool tarantool/tarantool:1.7 tarantool /opt/tarantool/box.lua
sudo docker run --name reserve -p33014:33014 -d -v `pwd`/test:/opt/tarantool tarantool/tarantool:1.7 tarantool /opt/tarantool/box1.lua
sudo docker run --name reserve_2 -p33015:33015 -d -v `pwd`/test:/opt/tarantool tarantool/tarantool:1.7 tarantool /opt/tarantool/box2.lua
npm run test
sudo docker stop -t 2 tarantool
sudo docker rm tarantool
sudo docker stop -t 2 reserve
sudo docker rm reserve
sudo docker stop -t 2 reserve_2
sudo docker rm reserve_2