Merge pull request #1176 from taufek/tj-chrome-driver-var
Move Chrome Driver Version to Env
This commit is contained in:
commit
01c358b6bc
@ -43,6 +43,7 @@ services:
|
|||||||
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
|
||||||
- PUID=${WORKSPACE_PUID}
|
- PUID=${WORKSPACE_PUID}
|
||||||
- PGID=${WORKSPACE_PGID}
|
- PGID=${WORKSPACE_PGID}
|
||||||
|
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
|
||||||
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
||||||
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
||||||
- TZ=${WORKSPACE_TIMEZONE}
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
|
@ -56,6 +56,7 @@ WORKSPACE_INSTALL_TERRAFORM=false
|
|||||||
WORKSPACE_INSTALL_DUSK_DEPS=false
|
WORKSPACE_INSTALL_DUSK_DEPS=false
|
||||||
WORKSPACE_PUID=1000
|
WORKSPACE_PUID=1000
|
||||||
WORKSPACE_PGID=1000
|
WORKSPACE_PGID=1000
|
||||||
|
WORKSPACE_CHROME_DRIVER_VERSION=2.32
|
||||||
WORKSPACE_NODE_VERSION=stable
|
WORKSPACE_NODE_VERSION=stable
|
||||||
WORKSPACE_YARN_VERSION=latest
|
WORKSPACE_YARN_VERSION=latest
|
||||||
WORKSPACE_TIMEZONE=UTC
|
WORKSPACE_TIMEZONE=UTC
|
||||||
|
@ -628,26 +628,23 @@ RUN if [ ${INSTALL_TERRAFORM} = 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