comparison testbench-node-17/Dockerfile @ 517:957e787ad842

USASR-5154 added j17 node directory
author belknapSSDT <zach.belknap@mcoecn.org>
date Tue, 03 Oct 2023 09:09:55 -0400
parents testbench-node/Dockerfile@2e65334684d8
children c941bcc97e5b
comparison
equal deleted inserted replaced
516:19605893f948 517:957e787ad842
1 FROM openjdk:17-buster
2
3 MAINTAINER Catherine Aldrich
4
5 ENV TESTBENCHJAR=/testbench-standalone.jar
6
7 # Install PhantomJS
8 RUN mkdir /phantom
9 WORKDIR /phantom
10 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
11 RUN tar -xf phantomjs.tar \
12 && mv $(find /phantom -name phantomjs) /bin \
13 && rm -rf /phantom
14 WORKDIR /
15
16 RUN apt-get update -y
17
18 # Install Chrome browser
19 ARG CHROME_84="84.0.4147.30"
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
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
32
33 # Add TestBench jar
34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR
35
36 COPY ./docker-entrypoint.sh /
37 RUN chmod a+x /docker-entrypoint.sh
38
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
45
46 ENTRYPOINT [ "./docker-entrypoint.sh" ]
47
48 CMD [ "node" ]