Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dhernandez/3468de11a18b996a41cd02cef51e12d0 to your computer and use it in GitHub Desktop.
Save dhernandez/3468de11a18b996a41cd02cef51e12d0 to your computer and use it in GitHub Desktop.
Docker lines to add couchbase PHP SDK in Alpine
RUN apk add --no-cache \
gcc \
g++ \
make \
php7-dev \
zlib-dev \
libcouchbase-dev \
;
RUN pecl channel-update pecl.php.net \
&& pecl install --alldeps pcs-1.3.3 \
&& pecl install --alldeps couchbase-2.4.6 \
;
extension=igbinary
extension=couchbase
@voskobovich
Copy link

Initialization order is very important!

RUN docker-php-ext-enable --ini-name 0-igbinary.ini igbinary \
&& docker-php-ext-enable --ini-name 1-couchbase.ini couchbase

@dhernandez
Copy link
Author

You are right, thank you for your comment!

@link2qaiser
Copy link

Not working for can you specify the php version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment