Browse Source

Adding google-chrome for headless krama based unit tests

bodicsek 6 years ago
parent
commit
14e257d0f8
1 changed files with 16 additions and 4 deletions
  1. 16 4
      Dockerfile

+ 16 - 4
Dockerfile

@@ -16,12 +16,24 @@ ENV HTTP_PROXY http://www-proxy-adcq7-new.us.oracle.com:80
 ENV HTTPS_PROXY http://www-proxy-adcq7-new.us.oracle.com:80
 ENV NO_PROXY localhost,.local,.oraclecorp.com,.grungy.us
 
-COPY --from=0 /usr/local/git /usr/local/git
-
+# install node
 RUN yum -y install oracle-nodejs-release-el7 \
-    && yum install -y --disablerepo=ol7_developer_EPEL nodejs procps \
-    && yum clean all
+    && yum install -y --disablerepo=ol7_developer_EPEL nodejs procps
+
+# install latest git 
+COPY --from=0 /usr/local/git /usr/local/git
 RUN echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc \
     && echo "source /etc/bashrc" >> /root/.bashrc
 
+# install google chrome 
+RUN echo "[google-chrome]" > /etc/yum.repos.d/google-chrome.repo \
+    && echo "name=google-chrome" >> /etc/yum.repos.d/google-chrome.repo \
+    && echo "baseurl=https://dl-ssl.google.com/linux/chrome/rpm/stable/\$basearch" >> /etc/yum.repos.d/google-chrome.repo \
+    && echo "enabled=1" >> /etc/yum.repos.d/google-chrome.repo \
+    && echo "gpgcheck=1" >> /etc/yum.repos.d/google-chrome.repo \
+    && echo "gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub" >> /etc/yum.repos.d/google-chrome.repo \
+    && yum-config-manager --enable ol7_optional_latest \
+    && yum install -y google-chrome-stable \
+    && yum clean all
+
 ENV SHELL /bin/bash