File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ services:
2222 - INSTALL_YARN=false
2323 - INSTALL_DRUSH=false
2424 - INSTALL_AEROSPIKE_EXTENSION=false
25+ - INSTALL_V8JS_EXTENSION=false
2526 - COMPOSER_GLOBAL_INSTALL=false
2627 - INSTALL_WORKSPACE_SSH=false
2728 - PUID=1000
Original file line number Diff line number Diff line change @@ -235,6 +235,23 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
235235 rm /etc/php/7.0/cli/conf.d/aerospike.ini \
236236;fi
237237
238+ # ####################################
239+ # PHP V8JS:
240+ # ####################################
241+ USER root
242+
243+ ARG INSTALL_V8JS_EXTENSION=false
244+ ENV INSTALL_V8JS_EXTENSION ${INSTALL_V8JS_EXTENSION}
245+
246+ RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
247+ # Install the php V8JS extension
248+ add-apt-repository -y ppa:pinepain/libv8-5.4 \
249+ && apt-get update \
250+ && apt-get install -y php-dev php-pear libv8-5.4 \
251+ && pecl install v8js \
252+ && echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini \
253+ ;fi
254+
238255# ####################################
239256# Non-root user : PHPUnit path
240257# ####################################
You can’t perform that action at this time.
0 commit comments