diff testbench-node/Dockerfile @ 354:c0ec7a1b1836 production

testing
author aldrich@ssdt-ohio.org
date Wed, 20 May 2020 16:04:28 +0100
parents 4598330892d2
children 50e99c5b33af
line wrap: on
line diff
--- a/testbench-node/Dockerfile	Wed May 20 15:58:47 2020 +0100
+++ b/testbench-node/Dockerfile	Wed May 20 16:04:28 2020 +0100
@@ -1,4 +1,4 @@
-FROM java:8-jre
+FROM openjdk:8
 
 MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org>
 
@@ -16,18 +16,31 @@
 		&& 	mv $(find /phantom -name phantomjs) /bin \
 		&& rm -rf /phantom
 		
-RUN apt-get update -
+
+RUN apt-get update -y
 
-RUN mkdir /chromeinstall
+WORKDIR /
+##Chrome
+ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .
 
-ADD google-chrome-stable_current_amd64.deb  /chromeinstall/google-chrome-stable_current_amd64.deb
+RUN apt install -y ./google-chrome-stable_current_amd64.deb
+
+RUN rm -rf google-chrome-stable_current_amd64.deb
 
-RUN  apt install -y /chromeinstall/google-chrome-stable_current_amd64.deb
-
+##Chromium driver (apt-get did notwork)
+ADD http://files.ssdt.io/chromedriver_linux64.zip .
+RUN unzip chromedriver_linux64.zip -d /
+RUN mv -f /chromedriver /usr/local/bin/chromedriver
+RUN chmod 0755 /usr/local/bin/chromedriver
 
-RUN apt-get install -y chromium-chromedriver 
+#RUN rm chromedriver_linux64.zip
+RUN rm -f /chromedriver_linux64
+##for testing purposes check versions
+RUN google-chrome --version
+RUN chromedriver --version
 
-
+#RUN apt-get install -y chromium-chromedriver 
+#RUN apt-get install -y chromium-chromedriver
 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
 
 WORKDIR /