Arg not consumed (#1430)
* fix arg CHROME_DRIVER_VERSION not consumed * fix arg INSTALL_V8JS not consumed
This commit is contained in:
parent
f08c3bda4d
commit
2cf368e2cc
@ -410,6 +410,23 @@ RUN if [ ${INSTALL_AEROSPIKE} = false ]; then \
|
|||||||
rm /etc/php/5.6/cli/conf.d/aerospike.ini \
|
rm /etc/php/5.6/cli/conf.d/aerospike.ini \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PHP V8JS:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_V8JS=false
|
||||||
|
ENV INSTALL_V8JS ${INSTALL_V8JS}
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_V8JS} = true ]; then \
|
||||||
|
# Install the php V8JS extension
|
||||||
|
add-apt-repository -y ppa:pinepain/libv8-archived \
|
||||||
|
&& apt-get update -yqq \
|
||||||
|
&& apt-get install -y php5.6-xml php5.6-dev php-pear libv8-dev \
|
||||||
|
&& pecl install v8js-0.6.4 \
|
||||||
|
&& echo "extension=v8js.so" >> /etc/php/5.6/cli/php.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Non-root user : PHPUnit path
|
# Non-root user : PHPUnit path
|
||||||
#####################################
|
#####################################
|
||||||
@ -632,6 +649,8 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
|||||||
# Dusk Dependencies:
|
# Dusk Dependencies:
|
||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
ARG CHROME_DRIVER_VERSION=stable
|
||||||
|
ENV CHROME_DRIVER_VERSION ${CHROME_DRIVER_VERSION}
|
||||||
ARG INSTALL_DUSK_DEPS=false
|
ARG INSTALL_DUSK_DEPS=false
|
||||||
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
||||||
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
||||||
@ -642,16 +661,14 @@ RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
|||||||
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
||||||
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
||||||
xfonts-base xfonts-scalable x11-apps \
|
xfonts-base xfonts-scalable x11-apps \
|
||||||
|
|
||||||
# Install Google Chrome
|
# Install Google Chrome
|
||||||
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
&& apt-get -y -f install \
|
&& apt-get -y -f install \
|
||||||
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
&& rm google-chrome-stable_current_amd64.deb \
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
|
||||||
# Install Chrome Driver
|
# Install Chrome Driver
|
||||||
&& wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip \
|
&& wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip \
|
||||||
&& unzip chromedriver_linux64.zip \
|
&& unzip chromedriver_linux64.zip \
|
||||||
&& mv chromedriver /usr/local/bin/ \
|
&& mv chromedriver /usr/local/bin/ \
|
||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
|
@ -709,26 +709,23 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
|||||||
# Dusk Dependencies:
|
# Dusk Dependencies:
|
||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
ARG CHROME_DRIVER_VERSION=stable
|
||||||
|
ENV CHROME_DRIVER_VERSION ${CHROME_DRIVER_VERSION}
|
||||||
ARG INSTALL_DUSK_DEPS=false
|
ARG INSTALL_DUSK_DEPS=false
|
||||||
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
ENV INSTALL_DUSK_DEPS ${INSTALL_DUSK_DEPS}
|
||||||
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
RUN if [ ${INSTALL_DUSK_DEPS} = true ]; then \
|
||||||
# Install required packages
|
|
||||||
add-apt-repository ppa:ondrej/php \
|
add-apt-repository ppa:ondrej/php \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get -y install zip wget unzip xdg-utils \
|
&& apt-get -y install zip wget unzip xdg-utils \
|
||||||
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 xvfb \
|
||||||
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
gtk2-engines-pixbuf xfonts-cyrillic xfonts-100dpi xfonts-75dpi \
|
||||||
xfonts-base xfonts-scalable x11-apps \
|
xfonts-base xfonts-scalable x11-apps \
|
||||||
|
|
||||||
# Install Google Chrome
|
|
||||||
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
&& apt-get -y -f install \
|
&& apt-get -y -f install \
|
||||||
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
&& dpkg -i --force-depends google-chrome-stable_current_amd64.deb \
|
||||||
&& rm google-chrome-stable_current_amd64.deb \
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
&& wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip \
|
||||||
# Install Chrome Driver
|
|
||||||
&& wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip \
|
|
||||||
&& unzip chromedriver_linux64.zip \
|
&& unzip chromedriver_linux64.zip \
|
||||||
&& mv chromedriver /usr/local/bin/ \
|
&& mv chromedriver /usr/local/bin/ \
|
||||||
&& rm chromedriver_linux64.zip \
|
&& rm chromedriver_linux64.zip \
|
||||||
|
Loading…
Reference in New Issue
Block a user