carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
528 stars 424 forks source link

I m not able to create Firefox and Chrome Browser on top of docker-maven #229

Open tempr3737 opened 3 years ago

tempr3737 commented 3 years ago

below is my code.. It use to work earlier ... below is my dockerfile..

need help on it..

FROM maven:3.6.3-jdk-8

Firefox

ARG FIREFOX_VERSION=72.0 RUN apt-get update -qqy \ && apt-get -qqy install libgtk-3-0 libdbus-glib-1-2 libxt6 \ && rm -rf /var/lib/apt/lists/ /var/cache/apt/ \ && wget -q -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 \ && tar xjf /tmp/firefox.tar.bz2 -C /opt \ && rm /tmp/firefox.tar.bz2 \ && mv /opt/firefox /opt/firefox-$FIREFOX_VERSION \ && ln -s /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox

Install Chrome

RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - RUN set -x \ && apt-get update \ && apt-get install -y \ google-chrome-stable ENV CHROME_BIN /usr/bin/google-chrome

Xvfb required for chrome browser

RUN apt-get update -qqy \ && apt-get -qqy install xvfb \ && rm -rf /var/lib/apt/lists/ /var/cache/apt/

tempr3737 commented 3 years ago

below is the error: executor failed running [/bin/sh -c apt-get update -qqy && apt-get -qqy install libgtk-3-0 libdbus-glib-1-2 libxt6 && rm -rf /var/lib/apt/lists/ /var/cache/apt/ && wget -q -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 && tar xjf /tmp/firefox.tar.bz2 -C /opt && rm /tmp/firefox.tar.bz2 && mv /opt/firefox /opt/firefox-$FIREFOX_VERSION && ln -s /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox]: exit code: 5