comparison testbench-node/Dockerfile @ 361:2e65334684d8

adding and updating testbench information
author aldrich@ssdt-ohio.org
date Wed, 09 Sep 2020 16:52:33 +0100
parents 731a1492c8a0
children 50e99c5b33af
comparison
equal deleted inserted replaced
360:dcaaef5a6a4f 361:2e65334684d8
1 FROM openjdk:8 1 FROM openjdk:8
2 2
3 MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org> 3 MAINTAINER Catherine Aldrich and Greg Shepherd <shepherd@ssdt-ohio.org>
4 4
5 ENV TESTBENCHJAR=/testbench-standalone.jar 5 ENV TESTBENCHJAR=/testbench-standalone.jar
6 6
7 # Install PhantomJS
7 RUN mkdir /phantom 8 RUN mkdir /phantom
8
9 WORKDIR /phantom 9 WORKDIR /phantom
10
11
12
13 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar 10 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
14
15 RUN tar -xf phantomjs.tar \ 11 RUN tar -xf phantomjs.tar \
16 && mv $(find /phantom -name phantomjs) /bin \ 12 && mv $(find /phantom -name phantomjs) /bin \
17 && rm -rf /phantom 13 && rm -rf /phantom
18 14 WORKDIR /
19 15
20 RUN apt-get update -y 16 RUN apt-get update -y
21 17
22 WORKDIR / 18 # Install Chrome browser
23 ##Chrome 19 ARG CHROME_84="84.0.4147.30"
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb . 20 ARG CHROME_85="85.0.4183.83-1"
21 ARG CHROME_86="86.0.4240.22-1"
22 RUN wget --no-verbose -O /tmp/chrome.deb http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_85}_amd64.deb \
23 && apt install -y /tmp/chrome.deb \
24 && rm /tmp/chrome.deb
25 25
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb 26 ## Install Chromium driver
27 ADD ./chromedriver_linux64_85.zip .
28 RUN unzip chromedriver_linux64_85.zip -d /
29 RUN mv -f /chromedriver /usr/local/bin/chromedriver
30 RUN chmod 0777 /usr/local/bin/chromedriver
31 RUN rm -rf ./chromedriver_linux64_85.zip
27 32
28 RUN rm -rf google-chrome-stable_current_amd64.deb 33 # Add TestBench jar
29 34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR
30 ##Chromium driver (apt-get did notwork)
31 ADD http://files.ssdt.io/chromedriver_linux64.zip .
32 RUN unzip chromedriver_linux64.zip -d /
33 RUN mv -f /chromedriver /usr/local/bin/chromedriver
34 RUN chmod 0755 /usr/local/bin/chromedriver
35
36 RUN rm -f /chromedriver_linux64
37 ##for testing purposes check versions
38 RUN google-chrome --version
39 RUN chromedriver --version
40
41 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
42
43 WORKDIR /
44 35
45 COPY ./docker-entrypoint.sh / 36 COPY ./docker-entrypoint.sh /
37 RUN chmod a+x /docker-entrypoint.sh
46 38
47 RUN chmod a+x /docker-entrypoint.sh 39 RUN apt-get update -y
40
41 RUN chmod 0777 /usr/bin/google-chrome
42
43 RUN /usr/bin/google-chrome --version
44 RUN /usr/local/bin/chromedriver --version
48 45
49 ENTRYPOINT [ "./docker-entrypoint.sh" ] 46 ENTRYPOINT [ "./docker-entrypoint.sh" ]
50 47
51 CMD [ "node" ] 48 CMD [ "node" ]