354
|
1 FROM openjdk:8
|
77
|
2
|
344
|
3 MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org>
|
77
|
4
|
|
5 ENV TESTBENCHJAR=/testbench-standalone.jar
|
|
6
|
|
7 RUN mkdir /phantom
|
|
8
|
|
9 WORKDIR /phantom
|
|
10
|
344
|
11
|
|
12
|
77
|
13 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
|
|
14
|
|
15 RUN tar -xf phantomjs.tar \
|
|
16 && mv $(find /phantom -name phantomjs) /bin \
|
|
17 && rm -rf /phantom
|
344
|
18
|
354
|
19
|
|
20 RUN apt-get update -y
|
344
|
21
|
354
|
22 WORKDIR /
|
|
23 ##Chrome
|
|
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .
|
344
|
25
|
354
|
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb
|
|
27
|
|
28 RUN rm -rf google-chrome-stable_current_amd64.deb
|
344
|
29
|
354
|
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
|
344
|
35
|
354
|
36 #RUN rm chromedriver_linux64.zip
|
|
37 RUN rm -f /chromedriver_linux64
|
|
38 ##for testing purposes check versions
|
|
39 RUN google-chrome --version
|
|
40 RUN chromedriver --version
|
343
|
41
|
354
|
42 #RUN apt-get install -y chromium-chromedriver
|
|
43 #RUN apt-get install -y chromium-chromedriver
|
344
|
44 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
|
77
|
45
|
|
46 WORKDIR /
|
|
47
|
|
48 COPY ./docker-entrypoint.sh /
|
|
49
|
|
50 RUN chmod a+x /docker-entrypoint.sh
|
|
51
|
|
52 ENTRYPOINT [ "./docker-entrypoint.sh" ]
|
|
53
|
78
|
54 CMD [ "node" ]
|