Skip to content

Commit

Permalink
documentation of docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sstidl committed Dec 29, 2024
1 parent de84674 commit fe85a80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docker/test/README.md
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 5 additions & 0 deletions docker/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion docker/test/test-script.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fe85a80

Please sign in to comment.