Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tempr3737 opened this issue Sep 30, 2021 · 1 comment

Comments

@tempr3737
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant