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:
16
Dockerfile
16
Dockerfile
@@ -1,16 +1,13 @@
|
|||||||
FROM ruby:2.5.1
|
FROM ruby:2.5.1
|
||||||
|
|
||||||
# install google chrome
|
# install Chromium
|
||||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
RUN apt-get update
|
||||||
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
|
# stretch uses chromium package not chromium-browser
|
||||||
RUN apt-get -y update
|
RUN apt-get install chromium=73.0* -y
|
||||||
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 chromedriver
|
# install chromedriver
|
||||||
RUN apt-get install -yqq unzip
|
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/
|
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
|
||||||
|
|
||||||
# install xvfb
|
# install xvfb
|
||||||
@@ -21,10 +18,11 @@ ENV DISPLAY=:99
|
|||||||
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
|
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
|
||||||
|
|
||||||
RUN gem install watir webdrivers nokogiri
|
RUN gem install watir webdrivers nokogiri
|
||||||
|
RUN gem install watir-performance -v 0.6.4
|
||||||
COPY entrypoint.sh /root/entrypoint.sh
|
COPY entrypoint.sh /root/entrypoint.sh
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN chmod a+x /root/entrypoint.sh
|
||||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
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 &
|
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
|
||||||
export DISPLAY=:99
|
export DISPLAY=:99
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user