344
|
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
|
77
|
19
|
344
|
20 RUN apt-get update -y
|
|
21
|
|
22 WORKDIR /
|
|
23 ##Chrome
|
|
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .
|
|
25
|
|
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb
|
|
27
|
|
28 RUN rm -rf google-chrome-stable_current_amd64.deb
|
|
29
|
|
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
|
|
35
|
|
36 RUN rm -f /chromedriver_linux64
|
|
37 ##for testing purposes check versions
|
|
38 RUN google-chrome --version
|
|
39 RUN chromedriver --version
|
|
40
|
|
41 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
|
77
|
42
|
|
43 WORKDIR /
|
|
44
|
|
45 COPY ./docker-entrypoint.sh /
|
|
46
|
|
47 RUN chmod a+x /docker-entrypoint.sh
|
|
48
|
|
49 ENTRYPOINT [ "./docker-entrypoint.sh" ]
|
|
50
|
78
|
51 CMD [ "node" ]
|