1
0
mirror of https://github.com/jcwimer/watir-docker synced 2026-03-24 18:14:42 +00:00

Using chromium 73 and installed watir-performance

This commit is contained in:
2020-04-16 22:49:38 -04:00
parent f9d9465d7e
commit 5923e07810
2 changed files with 8 additions and 10 deletions

View File

@@ -1,16 +1,13 @@
FROM ruby:2.5.1
# install google chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
RUN apt-get -y update
RUN apt-get install -y google-chrome-stable
#RUN apt-get remove -y google-chrome-stable
#RUN wget -O /tmp/chrome.deb http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_73.0.3683.75-1_amd64.deb && dpkg -i /tmp/chrome.deb && rm /tmp/chrome.deb
# install Chromium
RUN apt-get update
# stretch uses chromium package not chromium-browser
RUN apt-get install chromium=73.0* -y
# install chromedriver
RUN apt-get install -yqq unzip
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
# install xvfb
@@ -21,10 +18,11 @@ ENV DISPLAY=:99
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
RUN gem install watir webdrivers nokogiri
RUN gem install watir-performance -v 0.6.4
COPY entrypoint.sh /root/entrypoint.sh
RUN mkdir /app
WORKDIR /app
RUN chmod a+x /root/entrypoint.sh
ENTRYPOINT ["/root/entrypoint.sh"]

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -e
echo "Starting X virtual framebuffer (Xvfb) in background..."
#echo "Starting X virtual framebuffer (Xvfb) in background..."
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
export DISPLAY=:99