Browse Source

Install web drivers to the gradle root

pull/830/head
Shagen Ogandzhanian 4 years ago
parent
commit
defae6241c
  1. 6
      ci/docker/compose-web/Dockerfile-Basic

6
ci/docker/compose-web/Dockerfile-Basic

@ -16,11 +16,11 @@ RUN dpkg --add-architecture i386 && apt-get update -yqq && apt-get install -y \
wget wget
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz \ RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz \
&& tar -xvzf geckodriver-v0.29.1-linux64.tar.gz && mv geckodriver /usr/local/bin && tar -xvzf geckodriver-v0.29.1-linux64.tar.gz && mkdir -p /root/.gradle/selenium/gecko &&mv geckodriver /root/.gradle/selenium/gecko
RUN export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE) \ RUN export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE) \
&& wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -P ~/tmp && wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -P ~/tmp \
RUN unzip -d /usr/local/bin ~/tmp/chromedriver_linux64.zip && rm ~/tmp/chromedriver_linux64.zip && mkdir -p /root/.gradle/selenium/chrome && unzip -d /root/.gradle/selenium/chrome ~/tmp/chromedriver_linux64.zip && rm ~/tmp/chromedriver_linux64.zip
ARG GRADLE_VERSION=7.0.2 ARG GRADLE_VERSION=7.0.2
RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp

Loading…
Cancel
Save