mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-03 22:28:24 +00:00
documentation of docker tests
This commit is contained in:
parent
de846743dc
commit
fe85a805ac
3 changed files with 14 additions and 1 deletions
4
docker/test/README.md
Normal file
4
docker/test/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
The files in this folder represent a simple end to end test.
|
||||
At the moment it is interactive, so you need to run `docker compose up` in the folder and watch the output for errors.
|
||||
Sometimes the mysql container needs more than 15 seconds, so the test_script fails.
|
||||
Just try it again.
|
||||
|
|
@ -129,6 +129,11 @@ services:
|
|||
############## TEST CONTAINER ###############################################################
|
||||
test-container:
|
||||
image: alpine
|
||||
depends_on:
|
||||
- pg
|
||||
- mysql
|
||||
- speedtest-alpine-mysql
|
||||
- speedtest-alpine-pg
|
||||
volumes:
|
||||
- ./test-script.sh:/test-script.sh
|
||||
command:
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
## simple script to call sanitycheck on all containers
|
||||
|
||||
PORT=8080
|
||||
|
||||
apk add w3m
|
||||
|
||||
echo sleeping a little to get things setteled...
|
||||
sleep 10
|
||||
sleep 15
|
||||
|
||||
for db in sqlite pg mysql; do
|
||||
for distro in alpine debian; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue