-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from aspirepress/dev-experience
Improving developer experience
- Loading branch information
Showing
6 changed files
with
36 additions
and
29 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
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,5 +1,6 @@ | ||
services: | ||
webapp: | ||
environment: | ||
- XDEBUG_CONFIG=idekey=PHPSTORM start_with_request=true var_display_max_depth=-1 max_nesting_level=3000 client_host=docker.for.mac.localhost | ||
- XDEBUG_MODE=develop,debug,coverage | ||
- XDEBUG_CONFIG=idekey=PHPSTORM start_with_request=true var_display_max_depth=-1 max_nesting_level=3000 client_host=172.17.0.1 | ||
- PHP_IDE_CONFIG=serverName=application.local | ||
- XDEBUG_MODEl=develop,debug,coverage |
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 |
---|---|---|
@@ -1,30 +1,38 @@ | ||
FROM php:8.3-fpm-alpine | ||
FROM php:8.3-fpm-alpine AS basephp | ||
|
||
MAINTAINER Sarah Savage | ||
|
||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apk update \ | ||
&& apk add \ | ||
bash \ | ||
linux-headers \ | ||
libpq-dev \ | ||
git \ | ||
zip \ | ||
libzip-dev \ | ||
icu-dev \ | ||
postgresql-client \ | ||
$PHPIZE_DEPS | ||
RUN apk add \ | ||
bash \ | ||
linux-headers \ | ||
libpq-dev \ | ||
git \ | ||
zip \ | ||
libzip-dev \ | ||
icu-dev \ | ||
postgresql-client \ | ||
$PHPIZE_DEPS | ||
|
||
|
||
RUN docker-php-ext-install pdo \ | ||
&& docker-php-ext-install pdo_pgsql \ | ||
&& docker-php-ext-install zip \ | ||
&& docker-php-ext-install intl \ | ||
&& pecl install xdebug-3.3.0 \ | ||
&& docker-php-ext-enable xdebug \ | ||
&& docker-php-ext-enable pdo_pgsql \ | ||
&& pecl install redis \ | ||
&& docker-php-ext-enable redis | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
FROM basephp AS devphp | ||
|
||
RUN pecl install xdebug-3.3.0 \ | ||
&& docker-php-ext-enable xdebug | ||
|
||
COPY ./docker/webapp/php.ini /usr/local/etc/php/php.ini | ||
|
||
FROM basephp AS prodphp | ||
|
||
COPY . /var/www/html | ||
|
||
RUN composer install -n --no-dev -q | ||
|
||
|
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