Skip to content

Commit 6175938

Browse files
committed
add pdo_pgsql to fix the frankenphp build
1 parent 5d2d689 commit 6175938

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Supported tags and respective `Dockerfile` links
2+
- [`frankenphp` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/frankenphp/Dockerfile)
23
- [`11`, `latest` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/11/Dockerfile)
34
- [`10` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/10/Dockerfile)
45
- [`9` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/9/Dockerfile)
@@ -19,10 +20,8 @@ The official Drupal Docker library is optimized for production. Therefore, it do
1920
## What tools are included in the developer environment?
2021

2122
- Git
22-
- MariaDB Client
2323
- wget
2424
- nano
25-
- Composer
2625
- Xdebug (Remote debugging enabled as default)
2726
- phpredis
2827
- mhsendmail (for Mailhog)

frankenphp/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,24 @@ RUN install-php-extensions \
1010
gd \
1111
opcache \
1212
pdo_mysql \
13+
pdo_pgsql \
1314
zip
1415

1516
COPY --from=drupal:php8.4 /opt/drupal /opt/drupal
1617
COPY --from=drupal:php8.4 /usr/local/etc/php/conf.d/* /usr/local/etc/php/conf.d/
17-
1818
COPY --from=composer/composer:2-bin /composer /usr/local/bin/
1919

20+
# enable Xdebug remote debugging
21+
RUN { \
22+
echo 'xdebug.mode=debug'; \
23+
echo 'xdebug.discover_client_host=true'; \
24+
echo 'xdebug.client_host=host.docker.internal'; \
25+
echo 'xdebug.start_with_request=yes'; \
26+
echo 'memory_limit = 4096M'; \
27+
echo 'error_log = /var/log/php_error.log'; \
28+
echo 'xdebug.log = /var/log/xdebug.log'; \
29+
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
30+
2031
# https://github.com/docker-library/drupal/pull/259
2132
# https://github.com/moby/buildkit/issues/4503
2233
# https://github.com/composer/composer/issues/11839

0 commit comments

Comments
 (0)