view testbench-node/Dockerfile @ 350:5ed8e2ba0d91 release/2.8.1

flow: Closed <release> '2.8.1'.
author aldrich@ssdt-ohio.org
date Wed, 20 May 2020 15:58:46 +0100
parents 731a1492c8a0
children 4598330892d2 2e65334684d8
line wrap: on
line source
FROM openjdk:8

MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org>

ENV TESTBENCHJAR=/testbench-standalone.jar

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
		

RUN apt-get update -y

WORKDIR /
##Chrome
ADD http://files.ssdt.io/google-chrome-stable_current_amd64.deb .

RUN apt install -y ./google-chrome-stable_current_amd64.deb

RUN rm -rf google-chrome-stable_current_amd64.deb

##Chromium driver (apt-get did notwork)
ADD http://files.ssdt.io/chromedriver_linux64.zip .
RUN unzip chromedriver_linux64.zip -d /
RUN mv -f /chromedriver /usr/local/bin/chromedriver
RUN chmod 0755 /usr/local/bin/chromedriver

RUN rm -f /chromedriver_linux64
##for testing purposes check versions
RUN google-chrome --version
RUN chromedriver --version

ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR

WORKDIR / 

COPY ./docker-entrypoint.sh /

RUN chmod a+x /docker-entrypoint.sh

ENTRYPOINT [ "./docker-entrypoint.sh" ]

CMD [ "node" ]