BigW Consortium Gitlab

Dockerfile 1001 Bytes
Newer Older
1 2
FROM ruby:2.3
LABEL maintainer "Grzegorz Bizon <grzegorz@gitlab.com>"
3
ENV DEBIAN_FRONTEND noninteractive
4

5 6 7 8 9 10 11
##
# 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

##
12
# Install Google Chrome version with headless support
13
#
14 15
RUN curl -sS -L https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
16
RUN apt-get update -q && apt-get install -y google-chrome-stable && apt-get clean
17 18 19 20

##
# Install chromedriver to make it work with Selenium
#
21
RUN wget -q https://chromedriver.storage.googleapis.com/$(wget -q -O - https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip
22 23
RUN unzip chromedriver_linux64.zip -d /usr/local/bin

24
WORKDIR /home/qa
25
COPY ./Gemfile* ./
26
RUN bundle install
27 28
COPY ./ ./

29
ENTRYPOINT ["bin/test"]