annotate 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
rev   line source
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
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
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
19
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
20 RUN apt-get update -y
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
21
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
22 WORKDIR /
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
23 ##Chrome
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
25
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
27
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
28 RUN rm -rf google-chrome-stable_current_amd64.deb
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
29
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
30 ##Chromium driver (apt-get did notwork)
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
31 ADD http://files.ssdt.io/chromedriver_linux64.zip .
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
32 RUN unzip chromedriver_linux64.zip -d /
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
33 RUN mv -f /chromedriver /usr/local/bin/chromedriver
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
34 RUN chmod 0755 /usr/local/bin/chromedriver
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
35
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
36 #RUN rm chromedriver_linux64.zip
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
37 RUN rm -f /chromedriver_linux64
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
38 ##for testing purposes check versions
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
39 RUN google-chrome --version
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
40 RUN chromedriver --version
343
b8373a99ad4d testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
41
354
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
42 #RUN apt-get install -y chromium-chromedriver
c0ec7a1b1836 testing
aldrich@ssdt-ohio.org
parents: 348
diff changeset
43 #RUN apt-get install -y chromium-chromedriver
344
731a1492c8a0 testbench updates
aldrich@ssdt-ohio.org
parents: 78
diff changeset
44 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
45
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
46 WORKDIR /
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
47
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
48 COPY ./docker-entrypoint.sh /
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
49
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
50 RUN chmod a+x /docker-entrypoint.sh
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
51
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
52 ENTRYPOINT [ "./docker-entrypoint.sh" ]
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
53
78
3eaeb138e1ae add default command
smith@nwoca.org
parents: 77
diff changeset
54 CMD [ "node" ]