Skip to content

Instantly share code, notes, and snippets.

@xKerman xKerman/Dockerfile
Created May 13, 2018

Embed
What would you like to do?
php72 bug report for opcache + couchbase
FROM centos:6
RUN yum -y groupinstall "Development Tools"
RUN curl -L -o php-7.2.5.tar.gz https://secure.php.net/get/php-7.2.5.tar.gz/from/this/mirror && \
tar xf php-7.2.5.tar.gz && \
cd php-7.2.5/ &&\
yum -y install libxml2-devel && \
./configure --with-config-file-path=/etc/ --with-config-file-scan-dir=/etc/php.d/ && \
make -j2 && \
make install
RUN mkdir /etc/php.d && \
cp php-7.2.5/php.ini-development /etc/php.ini && \
echo 'zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/opcache.so' >> /etc/php.d/opcache.ini && \
echo 'opcache.enable_cli=1' >> /etc/php.d/opcache.ini
RUN yum -y install http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-4-x86_64.rpm && \
yum -y install libcouchbase-devel && \
pecl install couchbase && \
echo 'extension=couchbase.so' >> /etc/php.d/couchbase.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.