annotate testbench-node/Dockerfile @ 528:e483148f5283

Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
author Marc Davis <marc.davis@mcoecn.org>
date Tue, 23 Apr 2024 14:47:12 -0400
parents 50e99c5b33af
children 9afc8cb478f6
rev   line source
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
1 FROM openjdk:8
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
2
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
3 MAINTAINER Catherine Aldrich and Greg Shepherd <shepherd@ssdt-ohio.org>
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
4
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
5 ENV TESTBENCHJAR=/testbench-standalone.jar
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
6
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
7 # Install PhantomJS
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
8 RUN mkdir /phantom
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
9 WORKDIR /phantom
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
10 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
11 RUN tar -xf phantomjs.tar \
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
12 && mv $(find /phantom -name phantomjs) /bin \
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
13 && rm -rf /phantom
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
14 WORKDIR /
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
15
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
16 RUN apt-get update -y
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
17
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
18 # Install Chrome browser
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
19 ARG CHROME_84="84.0.4147.30"
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
20 ARG CHROME_85="85.0.4183.83-1"
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
21 ARG CHROME_86="86.0.4240.22-1"
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
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 \
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
23 && apt install -y /tmp/chrome.deb \
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
24 && rm /tmp/chrome.deb
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
25
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
26 ## Install Chromium driver
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
27 ADD ./chromedriver_linux64_85.zip .
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
28 RUN unzip chromedriver_linux64_85.zip -d /
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
29 RUN mv -f /chromedriver /usr/local/bin/chromedriver
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
30 RUN chmod 0777 /usr/local/bin/chromedriver
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
31 RUN rm -rf ./chromedriver_linux64_85.zip
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
32
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
33 # Add TestBench jar
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
35
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
36 COPY ./docker-entrypoint.sh /
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
37 RUN chmod a+x /docker-entrypoint.sh
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
38
361
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
39 RUN apt-get update -y
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
40
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
41 RUN chmod 0777 /usr/bin/google-chrome
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
42
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
43 RUN /usr/bin/google-chrome --version
2e65334684d8 adding and updating testbench information
aldrich@ssdt-ohio.org
parents: 344
diff changeset
44 RUN /usr/local/bin/chromedriver --version
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
45
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
46 ENTRYPOINT [ "./docker-entrypoint.sh" ]
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
47
78
3eaeb138e1ae add default command
smith@nwoca.org
parents: 77
diff changeset
48 CMD [ "node" ]