-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref #187 - Also test with another user
- Loading branch information
1 parent
6d69b77
commit 6a68779
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
testing/docker-compose/docker-compose.testing-run-as-www-data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
version: "3.1" | ||
|
||
services: | ||
db_server: | ||
image: ${DB:-mariadb:10.11} | ||
environment: | ||
MARIADB_ROOT_PASSWORD: "${TESTSUITE_PASSWORD:-my-secret-pw}" | ||
healthcheck: | ||
test: ["CMD", "mariadb-admin", "ping", "-uroot", "-p${TESTSUITE_PASSWORD:-my-secret-pw}"] | ||
start_period: 10s | ||
interval: 5s | ||
timeout: 60s | ||
retries: 10 | ||
networks: | ||
testing: | ||
aliases: | ||
- phpmyadmin_testing_db | ||
tmpfs: | ||
- /var/lib/mysql:rw,noexec,nosuid,size=300m | ||
|
||
phpmyadmin: | ||
build: | ||
context: ../../apache | ||
# www-data:www-data in Debian (https://stackoverflow.com/a/69290889/5155484) | ||
user: 33:33 | ||
environment: | ||
PMA_HOST: db_server | ||
UPLOAD_LIMIT: 123M | ||
MAX_EXECUTION_TIME: 125 | ||
HIDE_PHP_VERSION: 1 | ||
volumes: | ||
- ../config.user.inc.php:/etc/phpmyadmin/config.user.inc.php:ro | ||
healthcheck: | ||
test: ["CMD", "curl", "-Ss", "http://localhost/robots.txt"] | ||
start_period: 5s | ||
interval: 3s | ||
timeout: 60s | ||
retries: 10 | ||
networks: | ||
testing: | ||
aliases: | ||
- phpmyadmin_testing_apache | ||
depends_on: | ||
db_server: | ||
condition: service_healthy | ||
|
||
sut: | ||
depends_on: | ||
phpmyadmin: | ||
condition: service_healthy | ||
db_server: | ||
condition: service_healthy | ||
build: | ||
context: ../ | ||
command: "/tests/testing/test-docker.sh" | ||
networks: | ||
testing: | ||
environment: | ||
TESTSUITE_HOSTNAME: phpmyadmin_testing_apache | ||
TESTSUITE_PORT: 80 | ||
TESTSUITE_PASSWORD: "${TESTSUITE_PASSWORD:-my-secret-pw}" | ||
PMA_HOST: phpmyadmin_testing_db | ||
PMA_PORT: 3306 | ||
volumes: | ||
- ../../:/tests:ro | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
working_dir: /tests | ||
|
||
networks: | ||
testing: | ||
driver: bridge |