Skip to content

Commit fe85a80

Browse files
committed
documentation of docker tests
1 parent de84674 commit fe85a80

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

docker/test/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The files in this folder represent a simple end to end test.
2+
At the moment it is interactive, so you need to run `docker compose up` in the folder and watch the output for errors.
3+
Sometimes the mysql container needs more than 15 seconds, so the test_script fails.
4+
Just try it again.

docker/test/docker-compose.yml

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ services:
129129
############## TEST CONTAINER ###############################################################
130130
test-container:
131131
image: alpine
132+
depends_on:
133+
- pg
134+
- mysql
135+
- speedtest-alpine-mysql
136+
- speedtest-alpine-pg
132137
volumes:
133138
- ./test-script.sh:/test-script.sh
134139
command:

docker/test/test-script.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
#!/bin/sh
2+
3+
## simple script to call sanitycheck on all containers
4+
15
PORT=8080
26

37
apk add w3m
48

59
echo sleeping a little to get things setteled...
6-
sleep 10
10+
sleep 15
711

812
for db in sqlite pg mysql; do
913
for distro in alpine debian; do

0 commit comments

Comments
 (0)