From bf1980f4777ff53ae30e0f407b432d967227e4e5 Mon Sep 17 00:00:00 2001 From: ShobhitSingh11 Date: Wed, 29 Nov 2023 19:29:14 +0530 Subject: [PATCH 1/3] . --- Dockerfile | 16 ++++++++++++++++ composer.json | 4 ++++ phpunit.xml.dist | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..0dc292d56 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM php:7.4-apache + +# Set the working directory to /var/www/html +WORKDIR /var/www/html + +# Copy the contents of the current directory into the container at /var/www/html +COPY . /var/www/html + +# Install any needed extensions +RUN docker-php-ext-install mysqli pdo_mysql + +# Make port 80 available to the world outside this container +EXPOSE 80 + +# Run apache when the container launches +CMD ["apache2-foreground"] \ No newline at end of file diff --git a/composer.json b/composer.json index d483f34ea..1d3dcf310 100644 --- a/composer.json +++ b/composer.json @@ -43,5 +43,9 @@ "branch-alias": { "dev-main": "2.x-dev" } + }, + "scripts": { + "lint": "find . -name '*.php' -exec php -l {} \\;", + "test": "./vendor/bin/phpunit --coverage-html=coverage" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1e07db961..6a0e91347 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,6 +4,10 @@ ./src + + + + From e790c2814b7eb6a518da281a33a7130c82184eec Mon Sep 17 00:00:00 2001 From: ShobhitSingh11 <139750384+ShobhitSingh11@users.noreply.github.com> Date: Fri, 21 Feb 2025 11:59:52 +0530 Subject: [PATCH 2/3] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0dc292d56..6939d358f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,5 @@ RUN docker-php-ext-install mysqli pdo_mysql # Make port 80 available to the world outside this container EXPOSE 80 -# Run apache when the container launches -CMD ["apache2-foreground"] \ No newline at end of file +# Run apache when the container launches +CMD ["apache2-foreground"] From d8a44d08b784bcc9dc0961d21aa73527fe62f9fe Mon Sep 17 00:00:00 2001 From: ShobhitSingh11 <139750384+ShobhitSingh11@users.noreply.github.com> Date: Fri, 21 Feb 2025 12:01:15 +0530 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6939d358f..d4125667e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:7.4-apache -# Set the working directory to /var/www/html +# Set the working directory to /var/www/html WORKDIR /var/www/html # Copy the contents of the current directory into the container at /var/www/html