File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed
Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 22# # do not use it in production
33
44services :
5- # ##################### POSTGRESQL ################################
5+ # ##################### POSTGRESQL ################################
66 pg :
77 image : postgres:alpine
88 environment :
@@ -39,7 +39,7 @@ services:
3939 ports :
4040 - 9124:8080
4141
42- # ###################### MYSQL ##############################
42+ # ###################### MYSQL ##############################
4343
4444 mysql :
4545 image : mysql:lts
@@ -79,7 +79,8 @@ services:
7979 ports :
8080 - 9126:8080
8181
82- # ##### SQLITE ######
82+ # ############### SQLITE ####################################
83+
8384 speedtest-debian-sqlite :
8485 # check at http://localhost:9125/results/sanitycheck.php
8586 build :
@@ -102,3 +103,12 @@ services:
102103 environment : *env_vars_sqlite
103104 ports :
104105 - 9128:8080
106+
107+ # ############# TEST CONTAINER ###############################################################
108+ test-container :
109+ image : alpine
110+ volumes :
111+ - ./test-script.sh:/test-script.sh
112+ command :
113+ - sh
114+ - /test-script.sh
Original file line number Diff line number Diff line change 1+ PORT=8080
2+
3+ apk add w3m
4+
5+ echo sleeping a little to get things setteled...
6+ sleep 10
7+
8+ for db in sqlite pg mysql; do
9+ for distro in alpine debian; do
10+ hostname=speedtest-$distro -$db
11+ echo $hostname
12+ w3m -dump http://$hostname :$PORT /results/sanitycheck.php| grep -v ' N/A'
13+ done
14+ done
You can’t perform that action at this time.
0 commit comments