Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Commit 95a3ac4

Browse files
committed
adding pgsql & pdo_pgsql
1 parent 0c7c6d7 commit 95a3ac4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ LABEL Maintainer="Zaher Ghaibeh <z@zah.me>" \
1515

1616
RUN apk update \
1717
&& apk add --no-cache git mysql-client curl openssh-client icu libpng libjpeg-turbo \
18-
&& apk add --no-cache --virtual build-dependencies icu-dev \
18+
&& apk add --no-cache --virtual build-dependencies icu-dev postgresql-dev \
1919
libxml2-dev freetype-dev libpng-dev libjpeg-turbo-dev g++ make autoconf \
2020
&& docker-php-source extract \
2121
&& pecl install redis \
2222
&& docker-php-ext-enable redis \
2323
&& docker-php-source delete \
24-
&& docker-php-ext-install pdo_mysql pdo_pgsql intl zip gd \
24+
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
25+
&& docker-php-ext-install pgsql pdo_mysql pdo_pgsql intl zip gd \
2526
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
2627
&& mkdir /src && cd /src && git clone https://github.com/xdebug/xdebug.git \
2728
&& cd xdebug \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ It has the following modules:
2727
1. libxml
2828
1. mbstring
2929
1. mysqlnd
30+
1. pdo_pgsql
31+
1. pgsql
3032
1. openssl
3133
1. pcre
3234
1. PDO

0 commit comments

Comments
 (0)