-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
# Use image which contains apache with php | ||
FROM php:8.1.2-apache | ||
FROM php:8.2-apache | ||
RUN apt-get update && apt-get upgrade -y | ||
# Install packages needed to install php extensions | ||
RUN apt-get install git zlib1g-dev libxml2-dev libzip-dev zip unzip -y | ||
# Install PHP extensions | ||
RUN docker-php-ext-install zip intl mysqli pdo pdo_mysql opcache | ||
# Install NPM | ||
RUN apt-get install npm -y | ||
# Upgrade npm to latest version | ||
RUN npm install -g npm | ||
# Install node manager - n | ||
RUN npm install -g n | ||
# Install latest stable node version | ||
RUN n stable | ||
# Install latest stable Yarn | ||
RUN npm install --global yarn | ||
# Install XDEBUG | ||
RUN pecl install xdebug-3.1.3 && docker-php-ext-enable xdebug | ||
RUN pecl install xdebug | ||
# Enable XDEBUG | ||
RUN docker-php-ext-enable xdebug | ||
# Install composer command | ||
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer | ||
# Install symfony command | ||
RUN curl -sS https://get.symfony.com/cli/installer | bash && mv /root/.symfony/bin/symfony /usr/local/bin/symfony | ||
# Set umask to 0000 (newly created files will have 777 permissions) | ||
RUN echo "umask 0000" >> /root/.bashrc |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
zend_extension=xdebug | ||
|
||
[xdebug] | ||
xdebug.mode=develop,debug | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug | ||
xdebug.start_with_request=yes | ||
xdebug.client_port=9003 | ||
xdebug.client_host=host.docker.internal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
echo "You should put some breakpoints in your IDE"; | ||
|
||
$something = 4 + 5; | ||
|
||
echo " to check if XDEBUG works." . PHP_EOL; | ||
|
||
$somethingAgain = 9 + 5 + $something; | ||
|
||
echo "I can assure you it works on my machine (:"; |