Files
openstack-helm-images/osh-selenium/Dockerfile.ubuntu_xenial
Steve Wilkerson ef5c3f72e6 Add image for Selenium to be used in helm tests
This adds an image that includes Selenium and the google chrome
headless driver for use in helm tests for charts with a GUI

Change-Id: Id487bff5df6efe6e2d264f766260879c6a95c1aa
Signed-off-by: Steve Wilkerson <sw5822@att.com>
2019-06-04 16:43:39 +00:00

17 lines
691 B
Docker

FROM docker.io/ubuntu:xenial
RUN apt-get -y update \
&& apt-get install -y python-pip unzip wget
RUN /usr/bin/pip install selenium
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& wget --directory-prefix=/tmp/ https://chromedriver.storage.googleapis.com/2.44/chromedriver_linux64.zip \
&& unzip /tmp/chromedriver_linux64.zip -d /etc/selenium
RUN apt-get -y update \
&& apt-get install -y google-chrome-stable \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*