@@ -410,6 +410,23 @@ RUN if [ ${INSTALL_AEROSPIKE} = false ]; then \
410410 rm /etc/php/5.6/cli/conf.d/aerospike.ini \
411411;fi
412412
413+ #####################################
414+ # PHP V8JS:
415+ #####################################
416+ USER root
417+
418+ ARG INSTALL_V8JS=false
419+ ENV INSTALL_V8JS ${INSTALL_V8JS}
420+
421+ RUN if [ ${INSTALL_V8JS} = true ]; then \
422+ # Install the php V8JS extension
423+ add-apt-repository -y ppa:pinepain/libv8-archived \
424+ && apt-get update -yqq \
425+ && apt-get install -y php5.6-xml php5.6-dev php-pear libv8-dev \
426+ && pecl install v8js-0.6.4 \
427+ && echo "extension=v8js.so" >> /etc/php/5.6/cli/php.ini \
428+ ;fi
429+
413430#####################################
414431# Non-root user : PHPUnit path
415432#####################################
@@ -632,6 +649,8 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
632649# Dusk Dependencies:
633650#####################################
634651USER root
652+ ARG CHROME_DRIVER_VERSION=stable
653+ ENV CHROME_DRIVER_VERSION ${CHROME_DRIVER_VERSION}
635654ARG INSTALL_DUSK_DEPS=false
636655ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
637656RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
@@ -642,16 +661,14 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
642661 libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
643662 gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
644663 xfonts-base xfonts-scalable x11-apps \
645-
646664 # Install Google Chrome
647665 && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
648666 && dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
649667 && apt-get -y -f install \
650668 && dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
651669 && rm google-chrome-stable_current_amd64.deb \
652-
653670 # Install Chrome Driver
654- && wget https://chromedriver.storage.googleapis.com/2.31 /chromedriver_linux64.zip \
671+ && wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION} /chromedriver_linux64.zip \
655672 && unzip chromedriver_linux64.zip \
656673 && mv chromedriver /usr/local/bin/ \
657674 && rm chromedriver_linux64.zip \
0 commit comments