From 0aec16aa5b682e17def9ffdfc02b8c4ff5277f01 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 2 Feb 2019 12:06:21 +0000 Subject: [PATCH] specify DB in docker env --- Dockerfile | 2 +- tests/docker-init.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/docker-init.sh diff --git a/Dockerfile b/Dockerfile index 35c20085..b5bc7242 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ RUN mkdir -p data/config && \ php index.php && \ ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \ rm -rf data -CMD ["/usr/bin/php", "-d", "upload_max_filesize=50M", "-d", "post_max_size=50M", "-S", "0.0.0.0:8000", "tests/router.php"] +CMD "/app/tests/docker-init.sh" diff --git a/tests/docker-init.sh b/tests/docker-init.sh new file mode 100644 index 00000000..09ce87e3 --- /dev/null +++ b/tests/docker-init.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo " data/config/auto_install.conf.php +/usr/bin/php -d upload_max_filesize=50M -d post_max_size=50M -S 0.0.0.0:8000 tests/router.php