Skip to content

Commit

Permalink
update to support php7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Dec 19, 2019
1 parent 04a068e commit 6a06a4b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
18 changes: 7 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ RUN cd /tmp \
&& dpkg -i /tmp/couchbase-release-1.0-4-amd64.deb \
&& add-apt-repository -y ppa:couchdb/stable \
&& apt-add-repository -y ppa:ondrej/php \
&& apt-get update && apt-get -y --no-install-recommends upgrade \
&& apt-get update && apt-get -yf -o Dpkg::Options::="--force-confdef" --no-install-recommends upgrade \
&& apt-get -y --no-install-recommends --allow-unauthenticated install wget curl unzip nano vim rsync apt-transport-https openssh-client openssh-server \
sudo tar git apt-utils software-properties-common build-essential python-dev tcl openssl libpcre3 dnsmasq ca-certificates libpcre3-dev re2c \
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.3-dev php7.3-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.4-dev php7.4-xml \
&& rsync --update -ahp --progress /opt/libv8-7.4/ /usr/local/ \
&& systemctl disable incron \
&& echo 'root' >> /etc/incron.allow \
Expand All @@ -28,14 +28,10 @@ RUN cd /tmp \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /core \
&& /usr/bin/switch-php.sh "7.1" \
&& pecl -d php_suffix=7.1 install -f --alldeps pcs igbinary couchbase imagick \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.1 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-7.4 \
&& make all test install \
&& mkdir -p /mytmp/20160303 && rsync -ahp /usr/lib/php/20160303/ /mytmp/20160303/ \
&& ls -la /usr/lib/php \
&& /usr/bin/switch-php.sh "7.4" \
&& pecl -d php_suffix=7.4 install -f --alldeps imagick \
&& mkdir -p /mytmp/20190902 && rsync -ahp /usr/lib/php/20190902/ /mytmp/20190902/ \
&& rm -rf /tmp/*
RUN /usr/bin/switch-php.sh "7.3" \
&& pecl -d php_suffix=7.3 install -f --alldeps pcs igbinary couchbase imagick \
Expand All @@ -53,7 +49,7 @@ RUN /usr/bin/switch-php.sh "7.2" \
&& git checkout php7 && phpize7.2 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-7.4 \
&& make all test install \
&& rsync -ahp /mytmp/20160303/ /usr/lib/php/20160303/ \
&& rsync -ahp /mytmp/20190902/ /usr/lib/php/20190902/ \
&& 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 \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017
Copyright (c) 2020

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ 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 v8 and v8js for php7.1+
1. pecl install latest v8 and v8js for php7.2+
2. pecl install pcs and couchbase for couchdb
3. imagemagick lib for php-imagick support

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

## Note
1.5.0 - removed deprecated php7.1 and add php7.4 - note that, pcs, igbinary, couchbase, and v8js are not yet compatible for php7.4

1.4.2 - remove composer

1.4.0 - removed v8 now that we can build v8js in all versions of php
Expand Down

0 comments on commit 6a06a4b

Please sign in to comment.