Mercurial > public > ssdt-docker
comparison testbench-node-17/Dockerfile @ 533:2e67cfae1533 production v2.17.0
flow: Merged <release> '2.17.0' to <master> ('production').
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Thu, 02 May 2024 22:46:24 -0400 |
parents | c941bcc97e5b |
children | 9afc8cb478f6 |
comparison
equal
deleted
inserted
replaced
524:6ddfd364a52a | 533:2e67cfae1533 |
---|---|
1 FROM openjdk:17-buster | |
2 | |
3 MAINTAINER Catherine Aldrich | |
4 | |
5 ENV TESTBENCHJAR=/testbench-standalone.jar | |
6 | |
7 # Install PhantomJS | |
8 RUN mkdir /phantom | |
9 WORKDIR /phantom | |
10 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar | |
11 RUN tar -xf phantomjs.tar \ | |
12 && mv $(find /phantom -name phantomjs) /bin \ | |
13 && rm -rf /phantom | |
14 WORKDIR / | |
15 | |
16 RUN apt-get update -y | |
17 | |
18 # Install Chrome browser | |
19 ARG CHROME_84="84.0.4147.30" | |
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 | |
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 | |
32 | |
33 # Add TestBench jar | |
34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR | |
35 | |
36 COPY ./docker-entrypoint.sh / | |
37 RUN chmod a+x /docker-entrypoint.sh | |
38 | |
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 | |
45 | |
46 ENTRYPOINT [ "./docker-entrypoint.sh" ] | |
47 | |
48 CMD [ "node" ] |