File tree Expand file tree Collapse file tree 6 files changed +13
-10
lines changed Expand file tree Collapse file tree 6 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 26
26
- " ruby"
27
27
steps :
28
28
- uses : actions/checkout@v2
29
- - run : sed -i 's/python/'"$ISUCON_APP_LANG"'/g' ./docker-compose.yml && make build
29
+ - run : echo 'Run benchmark for ISHOCON2'
30
+ - run : |
31
+ sed -i 's/python/'"$ISHOCON_APP_LANG"'/g' ./docker-compose.yml
32
+ cat ./docker-compose.yml
33
+ make build
30
34
env:
31
- ISHOCON_APP_LANG : run_ ${{ matrix.language }}
32
- - run : make up && sleep 10
35
+ ISHOCON_APP_LANG: ${{ matrix.language }}
36
+ - run : make up && sleep 30
33
37
- run : make bench
34
38
timeout-minutes : 5
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ up: build
10
10
down :
11
11
docker compose down
12
12
13
- bench : up
13
+ bench :
14
14
docker exec -i ishocon2-bench-1 sh -c " ./benchmark --ip app:443"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
dockerfile : ./docker/app/python/Dockerfile
7
7
environment :
8
8
ISHOCON_APP_LANG : " ${ISHOCON_APP_LANG-python}"
9
- command : /home/ishocon/run.sh
9
+ command : [ /home/ishocon/run.sh]
10
10
tty : true
11
11
volumes :
12
12
- storage_app:/var/lib/mysql
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash -eux
2
+
2
3
sudo service nginx start
3
4
sudo service mysql start
4
5
sudo chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash -ux
2
+
2
3
service mysql start # なぜか失敗する(調査中)
3
4
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld
4
5
service mysql start # 正しく起動
Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ function run_crystal() {
50
50
}
51
51
52
52
echo " run $app_lang app..."
53
- ls -alt /home/ishocon
54
- ls -alt " /home/ishocon/webapp"
55
- ls -alt " /home/ishocon/webapp/$app_lang "
56
53
cd " /home/ishocon/webapp/$app_lang "
57
54
58
55
" run_$app_lang "
You can’t perform that action at this time.
0 commit comments