Skip to content

Commit

Permalink
update support for php 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Dec 8, 2018
1 parent 800d4b6 commit 802cf4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,25 @@ RUN cd /tmp \
libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev libmagickwand-dev procps imagemagick netcat pkg-config \
mcrypt pwgen language-pack-en-base libicu-dev g++ cpp libglib2.0-dev incron libcouchbase-dev libcouchbase2-libevent \
libc6 libcurl3 libgcc1 libgssapi-krb5-2 liblttng-ust0 libssl1.0.0 libstdc++6 libunwind8 libuuid1 zlib1g \
php-pear php-xml php7.2-dev php7.2-xml php7.1-dev php7.1-xml \
php-pear php-xml php7.3-dev php7.3-xml php7.2-dev php7.2-xml php7.1-dev php7.1-xml \
&& rsync --update -ahp --progress /opt/libv8-6.8/ /usr/local/ \
&& systemctl disable incron \
&& echo 'root' >> /etc/incron.allow \
&& dpkg --configure -a \
&& pecl channel-update pecl.php.net \
&& /usr/bin/switch-php.sh "7.1" \
&& pecl -d php_suffix=7.1 install -f --alldeps pcs igbinary couchbase imagick v8 v8js \
&& mkdir -p /mytmp/20160303 && rsync -ahp /usr/lib/php/20160303/ /mytmp/20160303/ \
&& rm -rf /tmp/* \
&& /usr/bin/switch-php.sh "7.3" \
&& pecl -d php_suffix=7.3 install -f --alldeps pcs igbinary couchbase imagick v8 \
&& mkdir -p /mytmp/20180731 && rsync -ahp /usr/lib/php/20180731/ /mytmp/20180731/ \
&& rm -rf /tmp/* \
&& mkdir -p /tmp/20160303 && rsync -ahp /usr/lib/php/20160303/ /tmp/20160303/ \
&& /usr/bin/switch-php.sh "7.2" \
&& pecl -d php_suffix=7.2 install -f --alldeps pcs igbinary couchbase imagick v8 v8js \
&& rsync -ahp /tmp/20160303/ /usr/lib/php/20160303/ \
&& rsync -ahp /mytmp/20160303/ /usr/lib/php/20160303/ \
&& rsync -ahp /mytmp/20180731/ /usr/lib/php/20180731/ \
&& rm -rf /mytmp \
&& curl -s -o /tmp/python-support_1.0.15_all.deb https://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb \
&& dpkg -i /tmp/python-support_1.0.15_all.deb \
&& apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 \
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ Based off https://github.com/phusion/baseimage-docker, this primarily build to i
For convienience, sshd is enabled by default; just don't expose docker port 22 if you don't want to use sshd.

## php files
1. pecl install latest v8js for php7.1+
1. pecl install latest v8 and v8js for php7.1+
2. pecl install pcs and couchbase for couchdb
3. imagemagick lib for php-imagick support
4. composer

## add repositories
1. php
1. php 7.1+
2. mariadb 10.2
3. mongodb 3.6
4. couchbase and couchdb

## Note
1.3.0 - add php 7.3 build everything works except pecl php7.3 v8js build. Note: use the alternative pecl php7.3 v8 module if you need v8 for php7.3 while waiting for pecl php7.3 v8js.

1.2.1 - update v8js build. Remove things that can be defer later.

1.1.0 - 10/26/2018 remove support for php5.6 and php7.0 as both will be end of life (EOL) by the end of this year: http://php.net/supported-versions.php
Expand Down

0 comments on commit 802cf4b

Please sign in to comment.