Fix workspace php56 install V8JS build fail (#2013)

* Add check swoole extenstion after install.
* Fix php 5.6 install swoole-2.0.11 get segmentation fault.
* Fix php 5.6 install v8js build fail.
This commit is contained in:
Shao Yu-Lung (Allen) 2019-02-23 12:24:58 +08:00 committed by GitHub
parent f7dff0f72f
commit cde20c3ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -624,13 +624,17 @@ USER root
ARG INSTALL_V8JS=false ARG INSTALL_V8JS=false
RUN if [ ${INSTALL_V8JS} = true ]; then \ RUN set -xe && if [ ${INSTALL_V8JS} = true ]; then \
# Install the php V8JS extension
add-apt-repository -y ppa:pinepain/libv8-archived \ add-apt-repository -y ppa:pinepain/libv8-archived \
&& apt-get update -yqq \ && apt-get update -yqq \
&& apt-get install -y php${LARADOCK_PHP_VERSION}-xml php${LARADOCK_PHP_VERSION}-dev php-pear libv8-5.4 \ && apt-get install -y libv8-5.4 && \
&& pecl install v8js \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install v8js-0.6.4; \
else \
pecl install v8js; \
fi \
&& echo "extension=v8js.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \ && echo "extension=v8js.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini \
&& php -m | grep -q 'v8js' \
;fi ;fi
########################################################################### ###########################################################################