2017-02-20 06:45:04 -05:00
|
|
|
FROM ruby:2.3
|
|
|
|
LABEL maintainer "Grzegorz Bizon <grzegorz@gitlab.com>"
|
|
|
|
|
2017-05-24 07:56:31 -04:00
|
|
|
##
|
|
|
|
# Update APT sources and install some dependencies
|
|
|
|
#
|
|
|
|
RUN sed -i "s/httpredir.debian.org/ftp.us.debian.org/" /etc/apt/sources.list
|
|
|
|
RUN apt-get update && apt-get install -y wget git unzip xvfb
|
|
|
|
|
|
|
|
##
|
|
|
|
# At this point Google Chrome Beta is 59 - first version with headless support
|
|
|
|
#
|
|
|
|
RUN wget -q https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
|
|
|
|
RUN dpkg -i google-chrome-beta_current_amd64.deb; apt-get -fy install
|
|
|
|
|
|
|
|
##
|
|
|
|
# Install chromedriver to make it work with Selenium
|
|
|
|
#
|
|
|
|
RUN wget -q https://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip
|
|
|
|
RUN unzip chromedriver_linux64.zip -d /usr/local/bin
|
|
|
|
|
|
|
|
RUN apt-get clean
|
2017-02-20 06:45:04 -05:00
|
|
|
|
|
|
|
WORKDIR /home/qa
|
|
|
|
|
2017-03-16 09:04:43 -04:00
|
|
|
COPY ./Gemfile* ./
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
RUN bundle install
|
|
|
|
|
2017-03-16 09:04:43 -04:00
|
|
|
COPY ./ ./
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
ENTRYPOINT ["bin/test"]
|