diff --git a/php/test/docker-php-apache.test-with-certs.sh b/php/test/docker-php-apache.test-with-certs.sh new file mode 100755 index 0000000000000000000000000000000000000000..4e39b0899530060a8a44647036c253e537abf602 --- /dev/null +++ b/php/test/docker-php-apache.test-with-certs.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +tag="latest" +if [ $# -ge 1 ]; then + tag=$1 +fi + +echo "running a canals/php based container with tag : $tag" + +docker run --rm\ + -p 9080:80 -p 9443:443 \ + -v "$PWD"/html:/var/www/html \ + -v "$PWD"/src:/var/www/src \ + -v "$PWD"/ssl:/etc/ssl \ + canals/php:$tag diff --git a/php/test/docker-php-apache.test.sh b/php/test/docker-php-apache.test.sh index 721b1be33d59fde1715bed64adb4e132c44ca93f..a33f4053e440ee1793213862f31fe96b662e9ed2 100755 --- a/php/test/docker-php-apache.test.sh +++ b/php/test/docker-php-apache.test.sh @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/bin/bash tag="latest" if [ $# -ge 1 ]; then diff --git a/php/test/docker-php-cli.test.sh b/php/test/docker-php-cli.test.sh index b9607ed2ad6601fc6d1b60fdb50d539bda2649e1..b67d94f0f482e83be85c9e10114060a69dc6576a 100755 --- a/php/test/docker-php-cli.test.sh +++ b/php/test/docker-php-cli.test.sh @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/bin/bash if [ $# -lt 1 ]; then diff --git a/php/test/html/index.php b/php/test/html/index.php index 6dc7b552f53ebbc5f12be6acb26e166ccdcc5eb3..86b4fe62e7b0f246fad6aa8bf5122d846b4386d6 100644 --- a/php/test/html/index.php +++ b/php/test/html/index.php @@ -15,3 +15,5 @@ echo <<<EOT <body> <h1> php is working ! </h1> <h2> sample : $sample</h2> </html> EOT; + +xdebug_info(); \ No newline at end of file diff --git a/php/test/src/sample.php b/php/test/src/sample.php index e344314467429091713699fe438b0c31ad98ebdf..c2f892cc617ceea6bc082b09e539772c1f4bfa72 100644 --- a/php/test/src/sample.php +++ b/php/test/src/sample.php @@ -7,6 +7,6 @@ * @author: canals */ -$sample ='hungry heart'; +$sample ='yoo man'; return $sample; \ No newline at end of file