Sign inSign up

ssjunipero/junipero-test

By ssjunipero

•Updated over 7 years ago

Java+Mvn+Chrome+Xvfb for smoke testing

Image
0

403

ssjunipero/junipero-test repository overview

FROM ubuntu:18.04

ADD . /automation WORKDIR /automation

##################################################################################################################

⁠AUTOMATION EXECUTION

################################################################################################################## #VARIABLES ENV CHROME_DRIVER_VERSION 2.44 ENV DISPLAY=:99 ENV DBUS_SESSION_BUS_ADDRESS=/dev/null ENV CHROME_DRIVER_TARBALL https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip⁠

RUN
echo -e "\n\n\n\n==> Install docker container other tools ..." &&
apt-get update -y &&
apt-get install -y software-properties-common &&
apt-get install -y --no-install-recommends
wget
zip
iputils-ping
vim
gnupg
unzip

RUN
echo -e "\n\n\n\n==> Install Google-Chrome..." &&
wget --no-verbose https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb⁠ &&
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install &&
rm -f google-chrome-stable_current_amd64.deb

RUN
echo -e "\n\n\n\n==> Install Display..." &&
apt-get install -yqq --no-install-recommends xvfb

RUN
echo -e "\n\n\n\n==> Install Chromedriver..." &&
wget $CHROME_DRIVER_TARBALL &&
unzip chromedriver_linux64.zip &&
mv chromedriver /usr/bin/chromedriver &&
chmod +x /usr/bin/chromedriver &&
rm -f chromedriver_linux64.zip

RUN
echo -e "\n\n\n\n==> Clean up..." &&
rm -rf /var/lib/apt/lists/*

ENV PATH /usr/lib/chromium/:$PATH

RUN
echo -e "\n\n\n\n==> Install JDK and Maven" &&
apt update &&
apt install wget openjdk-8-jdk default-jdk -y &&
export JAVA_HOME

RUN wget -P /automation http://us.mirrors.quenda.co/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz⁠ RUN tar xzvf ./apache-maven-3.6.0-bin.tar.gz

ENV MAVEN_HOME /automation/apache-maven-3.6.0 ENV M2_HOME /automation/apache-maven-3.6.0 ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 ENV PATH $JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH

RUN
echo -e "\n\n\n\n==> Starting Xvfb display..." &&
export DISPLAY=:99.0 CMD
Xvfb -ac $DISPLAY

Tag summary

Content type

Image

Digest

Size

497.9 MB

Last updated

over 7 years ago

docker pull ssjunipero/junipero-test:1.0.0