annotate testbench-node/Dockerfile @ 350:5ed8e2ba0d91 release/2.8.1

flow: Closed <release> '2.8.1'.
author aldrich@ssdt-ohio.org
date Wed, 20 May 2020 15:58:46 +0100
parents 731a1492c8a0
children 4598330892d2 2e65334684d8
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
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
3 MAINTAINER Catherine Aldrich <aldrich@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
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
7 RUN mkdir /phantom
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
8
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
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
11
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
12
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
13 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
14
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
15 RUN tar -xf phantomjs.tar \
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
16 && mv $(find /phantom -name phantomjs) /bin \
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
17 && rm -rf /phantom
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
18
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
19
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
20 RUN apt-get update -y
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
21
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
22 WORKDIR /
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
23 ##Chrome
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
25
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
27
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
28 RUN rm -rf google-chrome-stable_current_amd64.deb
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
29
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
30 ##Chromium driver (apt-get did notwork)
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
31 ADD http://files.ssdt.io/chromedriver_linux64.zip .
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
32 RUN unzip chromedriver_linux64.zip -d /
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
33 RUN mv -f /chromedriver /usr/local/bin/chromedriver
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
34 RUN chmod 0755 /usr/local/bin/chromedriver
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
35
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
36 RUN rm -f /chromedriver_linux64
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
37 ##for testing purposes check versions
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
38 RUN google-chrome --version
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
39 RUN chromedriver --version
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
40
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
41 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
42
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
43 WORKDIR /
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
44
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
45 COPY ./docker-entrypoint.sh /
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
46
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
47 RUN chmod a+x /docker-entrypoint.sh
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
48
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
49 ENTRYPOINT [ "./docker-entrypoint.sh" ]
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
50
78
3eaeb138e1ae add default command
smith@nwoca.org
parents: 77
diff changeset
51 CMD [ "node" ]