Mercurial > public > ssdt-docker
comparison testbench-node/Dockerfile @ 367:50e99c5b33af production vv2.9.0
flow: Merged <release> 'v2.9.0' to <master> ('production').
author | Jodi Becher <becher@ssdt-ohio.org> |
---|---|
date | Mon, 16 Aug 2021 18:46:57 +0100 |
parents | c0ec7a1b1836 2e65334684d8 |
children | 9afc8cb478f6 |
comparison
equal
deleted
inserted
replaced
359:dab812f30d3e | 367:50e99c5b33af |
---|---|
1 FROM openjdk:8 | 1 FROM openjdk:8 |
2 | 2 |
3 MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org> | 3 MAINTAINER Catherine Aldrich and Greg Shepherd <shepherd@ssdt-ohio.org> |
4 | 4 |
5 ENV TESTBENCHJAR=/testbench-standalone.jar | 5 ENV TESTBENCHJAR=/testbench-standalone.jar |
6 | 6 |
7 # Install PhantomJS | |
7 RUN mkdir /phantom | 8 RUN mkdir /phantom |
8 | |
9 WORKDIR /phantom | 9 WORKDIR /phantom |
10 | |
11 | |
12 | |
13 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar | 10 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar |
14 | |
15 RUN tar -xf phantomjs.tar \ | 11 RUN tar -xf phantomjs.tar \ |
16 && mv $(find /phantom -name phantomjs) /bin \ | 12 && mv $(find /phantom -name phantomjs) /bin \ |
17 && rm -rf /phantom | 13 && rm -rf /phantom |
18 | 14 WORKDIR / |
19 | 15 |
20 RUN apt-get update -y | 16 RUN apt-get update -y |
21 | 17 |
22 WORKDIR / | 18 # Install Chrome browser |
23 ##Chrome | 19 ARG CHROME_84="84.0.4147.30" |
24 ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb . | 20 ARG CHROME_85="85.0.4183.83-1" |
21 ARG CHROME_86="86.0.4240.22-1" | |
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 \ | |
23 && apt install -y /tmp/chrome.deb \ | |
24 && rm /tmp/chrome.deb | |
25 | 25 |
26 RUN apt install -y ./google-chrome-stable_current_amd64.deb | 26 ## Install Chromium driver |
27 ADD ./chromedriver_linux64_85.zip . | |
28 RUN unzip chromedriver_linux64_85.zip -d / | |
29 RUN mv -f /chromedriver /usr/local/bin/chromedriver | |
30 RUN chmod 0777 /usr/local/bin/chromedriver | |
31 RUN rm -rf ./chromedriver_linux64_85.zip | |
27 | 32 |
28 RUN rm -rf google-chrome-stable_current_amd64.deb | 33 # Add TestBench jar |
29 | 34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR |
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 chromedriver_linux64.zip | |
37 RUN rm -f /chromedriver_linux64 | |
38 ##for testing purposes check versions | |
39 RUN google-chrome --version | |
40 RUN chromedriver --version | |
41 | |
42 #RUN apt-get install -y chromium-chromedriver | |
43 #RUN apt-get install -y chromium-chromedriver | |
44 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR | |
45 | |
46 WORKDIR / | |
47 | 35 |
48 COPY ./docker-entrypoint.sh / | 36 COPY ./docker-entrypoint.sh / |
37 RUN chmod a+x /docker-entrypoint.sh | |
49 | 38 |
50 RUN chmod a+x /docker-entrypoint.sh | 39 RUN apt-get update -y |
40 | |
41 RUN chmod 0777 /usr/bin/google-chrome | |
42 | |
43 RUN /usr/bin/google-chrome --version | |
44 RUN /usr/local/bin/chromedriver --version | |
51 | 45 |
52 ENTRYPOINT [ "./docker-entrypoint.sh" ] | 46 ENTRYPOINT [ "./docker-entrypoint.sh" ] |
53 | 47 |
54 CMD [ "node" ] | 48 CMD [ "node" ] |