<p>I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing.</p>
<pre><code>FROM node:20
RUN wget -O firefox.tar.bz2 &quot;https://download.mozilla.org/?product=firefox-latest&amp;os=linux64&amp;lang=en-US&quot; --no-check-certificate
RUN tar -xvf firefox.tar.bz2
RUN sudo mv firefox/* /usr/bin/
</code></pre>
<p>Jenkinsfile looks like this, no extra arguments</p>
<pre><code>def dockerImage = docker.build(&quot;build-image:${env.BUILD_ID}&quot;, &quot;--build-arg DOCKER_UNAME=${env.DOCKER_UNAME} --build-arg DOCKER_UID=${env.DOCKER_UID} --build-arg DOCKER_GID=${env.DOCKER_GID} -f Dockerfile .&quot;)
</code></pre>

CC BY-SA 4.0
2024-07-09T07:35:08.080Z
Welcome to DevOps! Can you mention the image used in your Dockerfile?? [Edit](https://devops.stackexchange.com/posts/19441/edit) your question to add that info.
Ajay
CC BY-SA 4.0
2024-07-09T09:45:02.483Z
@Ajay just using node:20 and these steps
Manav Grover
CC BY-SA 4.0
2024-07-10T06:33:43.450Z
I tried your Dockerfile with some minor changes so that my container won't stop. The Firefox browser is installed inside the container and I guess the issue will be with your CI. Can you provide any logs in your Jenkins CI which can be used to know the steps that are being taken place??
Ajay
<docker><jenkins><jenkins-pipeline><dockerfile><jenkinsfile>
Intermittent Firefox Installation Failure in Docker CI
Manav Grover
# Intermittent Firefox Installation Failure in Docker CI

(Asked by: username_0 on 2024-07-09)

I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing.
FROM node:20
RUN wget -O firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64⟨=en-US" --no-check-certificate
RUN tar -xvf firefox.tar.bz2
RUN sudo mv firefox/* /usr/bin/

Jenkinsfile looks like this, no extra arguments
def dockerImage = docker.build("build-image:${env.BUILD_ID}", "--build-arg DOCKER_UNAME=${env.DOCKER_UNAME} --build-arg DOCKER_UID=${env.DOCKER_UID} --build-arg DOCKER_GID=${env.DOCKER_GID} -f Dockerfile .")

**Tags:** docker, jenkins, jenkins-pipeline, dockerfile, jenkinsfile

> **Comments:**
> **username_1**: Welcome to DevOps! Can you mention the image used in your Dockerfile?? [Edit](https://devops.stackexchange.com/posts/19441/edit) your question to add that info.  
> **username_0**: @username_1 just using node:20 and these steps  
> **username_1**: I tried your Dockerfile with some minor changes so that my container won't stop. The Firefox browser is installed inside the container and I guess the issue will be with your CI. Can you provide any logs in your Jenkins CI which can be used to know the steps that are being taken place??  

---

## 0 answers

