Mercurial > public > ssdt-docker
annotate testbench-node/Dockerfile @ 408:e49038cbb14c
Add scripts for ITC Management application
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Mon, 10 Oct 2022 14:32:06 -0400 |
parents | 2e65334684d8 |
children | 50e99c5b33af |
rev | line source |
---|---|
344 | 1 FROM openjdk:8 |
77 | 2 |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
3 MAINTAINER Catherine Aldrich and Greg Shepherd <shepherd@ssdt-ohio.org> |
77 | 4 |
5 ENV TESTBENCHJAR=/testbench-standalone.jar | |
6 | |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
7 # Install PhantomJS |
77 | 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 | |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
14 WORKDIR / |
77 | 15 |
344 | 16 RUN apt-get update -y |
17 | |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
18 # Install Chrome browser |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
19 ARG CHROME_84="84.0.4147.30" |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
20 ARG CHROME_85="85.0.4183.83-1" |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
21 ARG CHROME_86="86.0.4240.22-1" |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
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 \ |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
23 && apt install -y /tmp/chrome.deb \ |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
24 && rm /tmp/chrome.deb |
344 | 25 |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
26 ## Install Chromium driver |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
27 ADD ./chromedriver_linux64_85.zip . |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
28 RUN unzip chromedriver_linux64_85.zip -d / |
344 | 29 RUN mv -f /chromedriver /usr/local/bin/chromedriver |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
30 RUN chmod 0777 /usr/local/bin/chromedriver |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
31 RUN rm -rf ./chromedriver_linux64_85.zip |
344 | 32 |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
33 # Add TestBench jar |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
34 ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR |
77 | 35 |
36 COPY ./docker-entrypoint.sh / | |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
37 RUN chmod a+x /docker-entrypoint.sh |
77 | 38 |
361
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
39 RUN apt-get update -y |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
40 |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
41 RUN chmod 0777 /usr/bin/google-chrome |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
42 |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
43 RUN /usr/bin/google-chrome --version |
2e65334684d8
adding and updating testbench information
aldrich@ssdt-ohio.org
parents:
344
diff
changeset
|
44 RUN /usr/local/bin/chromedriver --version |
77 | 45 |
46 ENTRYPOINT [ "./docker-entrypoint.sh" ] | |
47 | |
78 | 48 CMD [ "node" ] |