Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker images and dual mode #693

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
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.
27 changes: 27 additions & 0 deletions docker/test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## this is a docker compose file used to test all scenarios
## do not use it in production
x-shared:
speedtest-service: &speedtest-service
environment:
- PASSWORD=gimmeTheStats1337
- [email protected]
- ENABLE_ID_OBFUSCATION=true
- MODE=standalone
- REDACT_IP_ADDRESSES=true
- TELEMETRY=true

services:
###################### POSTGRESQL ################################
Expand Down Expand Up @@ -104,9 +113,27 @@ services:
ports:
- 9128:8080

speedtest-alpine-sqlite-dual:
<<: *speedtest-service
build:
context: ../..
dockerfile: Dockerfile.alpine
environment:
- MODE=dual

volumes:
- ./servers.json:/servers.json:ro
ports:
- 9129:8080

############## 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
Loading
Loading