Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Update the CI test container to use chromium and chromedriver from ep…
Browse files Browse the repository at this point in the history
…el repo (#730)

Signed-off-by: Landon LaSmith <LLaSmith@redhat.com>
  • Loading branch information
LaVLaS authored Feb 14, 2023
1 parent e465b8a commit cbaef3b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM quay.io/centos/centos:stream8

# List of chromedriver versions for download - https://chromedriver.chromium.org/downloads
ARG CHROMEDRIVER_VER=110.0.5481.77
ARG ORG=opendatahub-io
ARG BRANCH=master
ARG ODS_CI_REPO=https://github.com/red-hat-data-services/ods-ci
Expand All @@ -11,16 +9,13 @@ ARG OC_CLI_URL=https://mirror.openshift.com/pub/openshift-v4/amd64/clients/ocp/l
ENV HOME /root
WORKDIR /root

RUN dnf install -y bc git go-toolset python3-pip python3-devel unzip && \
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
dnf install -y bc git go-toolset python3-pip python3-devel unzip chromium chromedriver && \
dnf clean all && \
git clone https://github.com/crobby/peak $HOME/peak && \
cd $HOME/peak && \
git submodule update --init

RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
echo -e "[google-chrome]\nname=google-chrome\nbaseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64\nenabled=1\ngpgcheck=1\ngpgkey=https://dl.google.com/linux/linux_signing_key.pub" > /etc/yum.repos.d/google-chrome.repo &&\
dnf -y install "google-chrome-stable" &&\
dnf clean all

# install jq to help with parsing json
RUN curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && \
chmod +x /usr/local/bin/jq
Expand All @@ -38,10 +33,6 @@ ADD ${OC_CLI_URL} $HOME/peak/oc-cli.tar.gz
RUN tar -C /usr/local/bin -xvf $HOME/peak/oc-cli.tar.gz && \
chmod +x /usr/local/bin/oc

RUN curl -o /tmp/chromedriver_linux64.zip -L https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VER}/chromedriver_linux64.zip &&\
unzip /tmp/chromedriver_linux64.zip &&\
cp chromedriver /usr/local/bin/chromedriver

COPY Pipfile Pipfile.lock $HOME/peak/

RUN pip3 install micropipenv &&\
Expand Down

0 comments on commit cbaef3b

Please sign in to comment.