changeset 517:957e787ad842

USASR-5154 added j17 node directory
author belknapSSDT <zach.belknap@mcoecn.org>
date Tue, 03 Oct 2023 09:09:55 -0400
parents 19605893f948
children ff7f693d873a
files testbench-node-17/Dockerfile testbench-node-17/chromedriver_linux64.zip testbench-node-17/chromedriver_linux64_85.zip testbench-node-17/chromedriver_linux64_86.zip testbench-node-17/docker-entrypoint.sh testbench-node-17/google-chrome-stable_current_amd64.deb testbench-node-17/phantomjs-2.1.1-linux-x86_64.tar testbench-node-17/vaadin-testbench-standalone-5.1.2.jar testbench-node-17/vaadin-testbench-standalone-5.2.0.jar
diffstat 9 files changed, 63 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testbench-node-17/Dockerfile	Tue Oct 03 09:09:55 2023 -0400
@@ -0,0 +1,48 @@
+FROM openjdk:17-buster
+
+MAINTAINER Catherine Aldrich
+
+ENV TESTBENCHJAR=/testbench-standalone.jar
+
+# Install PhantomJS
+RUN mkdir /phantom
+WORKDIR /phantom
+ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
+RUN 	tar -xf phantomjs.tar \
+		&& 	mv $(find /phantom -name phantomjs) /bin \
+		&& rm -rf /phantom
+WORKDIR /
+
+RUN apt-get update -y
+
+# Install Chrome browser
+ARG CHROME_84="84.0.4147.30"
+ARG CHROME_85="85.0.4183.83-1"
+ARG CHROME_86="86.0.4240.22-1"
+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 \
+  && apt install -y /tmp/chrome.deb \
+  && rm /tmp/chrome.deb
+
+## Install Chromium driver
+ADD ./chromedriver_linux64_85.zip .
+RUN unzip chromedriver_linux64_85.zip -d /
+RUN mv -f /chromedriver /usr/local/bin/chromedriver
+RUN chmod 0777 /usr/local/bin/chromedriver
+RUN rm -rf ./chromedriver_linux64_85.zip
+
+# Add TestBench jar
+ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR
+
+COPY ./docker-entrypoint.sh /
+RUN chmod a+x /docker-entrypoint.sh
+
+RUN apt-get update -y
+
+RUN chmod 0777 /usr/bin/google-chrome
+
+RUN /usr/bin/google-chrome --version
+RUN /usr/local/bin/chromedriver --version
+
+ENTRYPOINT [ "./docker-entrypoint.sh" ]
+
+CMD [ "node" ]
Binary file testbench-node-17/chromedriver_linux64.zip has changed
Binary file testbench-node-17/chromedriver_linux64_85.zip has changed
Binary file testbench-node-17/chromedriver_linux64_86.zip has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testbench-node-17/docker-entrypoint.sh	Tue Oct 03 09:09:55 2023 -0400
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+case "$1" in
+
+   node)
+     java -jar testbench-standalone.jar -role node -hub http://$HUB_HOST:4444/grid/register -browser "browserName=chrome"
+   ;;
+
+  *)
+  exec "$@"
+  ;;
+
+esac
+
Binary file testbench-node-17/google-chrome-stable_current_amd64.deb has changed
Binary file testbench-node-17/phantomjs-2.1.1-linux-x86_64.tar has changed
Binary file testbench-node-17/vaadin-testbench-standalone-5.1.2.jar has changed
Binary file testbench-node-17/vaadin-testbench-standalone-5.2.0.jar has changed