aws / aws/aws-codebuild-docker-images

Firefox installation failing in aws/codebuild/standard:5.0 due to compression format change

Open
#761 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
1.2k
Forks
971
Avg merge
2h 47m
Merged PRs (30d)
1

Description

Description
When building the aws/codebuild/standard:5.0 image, I encountered a build failure during the Firefox installation step. The issue stems from a change in Firefox's compression format: the downloadable file is now in .xz format rather than .bz2 as expected in the current Dockerfile.
Current Behavior
The build process downloads Firefox and attempts to extract it using bz2 decompression, which fails because the file is actually in xz format.
Steps to Reproduce

Attempt to build the aws/codebuild/standard:5.0 image
Observe the failure during Firefox extraction

Proposed Solution
The Dockerfile needs to be updated to account for the new compression format:

From:

```
dockerfileCopyRUN set -ex \
&& curl -L "https://download.mozilla.org/?product=firefox-latest&os=linux64" --output /tmp/FirefoxSetup.tar.bz2 \
&& tar xjf /tmp/FirefoxSetup.tar.bz2 -C /opt/ \
&& ln -s /opt/firefox/firefox /usr/local/bin/firefox \
&& rm -rf /tmp/* \
&& firefox --version
```

To:

```
dockerfileCopyRUN set -ex \
&& curl -L "https://download.mozilla.org/?product=firefox-latest&os=linux64" --output /tmp/FirefoxSetup.tar.xz \
&& tar xvf /tmp/FirefoxSetup.tar.xz -C /opt/ \
&& ln -s /opt/firefox/firefox /usr/local/bin/firefox \
&& rm -rf /tmp/* \
&& firefox --version
```

The changes involve:

Updating the output filename extension from .tar.bz2 to .tar.xz
Replacing the xjf flag (for bz2 extraction) with xvf (which will auto-detect the compression)

Thank you for your attention to this matter.

Contributor guide

Open the contributing guide

Research direction

Locate the Dockerfile for the aws/codebuild/standard:5.0 image and start at its Firefox installation step. Build that image to reproduce the extraction failure, then verify the Firefox download extracts successfully and that the final firefox --version check passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.