Skip to content

Instantly share code, notes, and snippets.

@douglasmartins7
Created June 19, 2018 17:42
Show Gist options
  • Save douglasmartins7/a521e818da264d3a56c64794bf988e9d to your computer and use it in GitHub Desktop.
Save douglasmartins7/a521e818da264d3a56c64794bf988e9d to your computer and use it in GitHub Desktop.
is not correct
FROM ruby:2.4
#author
MAINTAINER EQUIPE QA CVC
#enviroment variable about time config
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
#config browser start in linux
VOLUME /tmp/.X11-unix:/tmp/.X11-unix
# copy all my host for app at container
COPY . /usr/src/app/
VOLUME $(PWD)/data/:/usr/src/app/data
#directory start in container
WORKDIR /usr/src/app/
# Set timezone
RUN echo "America/Sao_Paulo" > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
#update the packages and install unzip
RUN apt-get update -y && \
apt-get install -y unzip xvfb \
qt5-default libqt5webkit5-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-tools gstreamer1.0-x \
freetds-dev \
libnss3 libxi6 libgconf-2-4
# install chrome
RUN apt-get update -y && \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# install chromedriver and place it ib path
RUN wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
mv chromedriver /usr/bin/
#install geckodriver
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.20.0/geckodriver-v0.20.0-linux64.tar.gz && \
tar xzf geckodriver-v0.20.0-linux64.tar.gz && \
mv geckodriver /usr/bin/
#comand install bundler and install all gems in gemfile
RUN gem install bundler && bundle install
## install required gem files for Capybara
##COPY ./Gemfile /usr/src/app/
##VOLUME $PWD:/usr/src/app
#execute comand that start programy
#ENTRYPOINT cucumber -p headless -t @basic -p prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment