Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

[Feature Request]: chromium-apt-get #626

Open
effendiian opened this issue Jul 27, 2024 · 2 comments
Open

[Feature Request]: chromium-apt-get #626

effendiian opened this issue Jul 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@effendiian
Copy link

effendiian commented Jul 27, 2024

Requested Feature

chromium-apt-get

Add chromium feature to allow headless browser installation using the apt-get package manager.

Rationale

This project provides access to a Lighthouse CLI through its feature specification here: ghcr.io/devcontainers-contrib/features/lighthouse-cli:1.

The Lighthouse CLI requires the CHROME_PATH environment variable to be set to a Chrome/Chromium executable no older than Chrome stable. Based on the current situation, a developer seeking to use the Lighthouse feature must either:

  1. use a base image that includes Chrome/Chromium.
  2. write a custom Dockerfile that installs the Chrome/Chromium dependency.

I imagine there's utility in being able to quickly add a headless browser dependency that can be added as a feature layer through the devcontainers.json configuration, without requiring the developer to write a Dockerfile / select a different base image specifically for the Lighthouse testing tools.

There are other uses for a headless browser (eg., using with a tool like puppeteer).

Solution

I have forked the repository and have created this issue to help track my contribution. I am adding a chromium-apt-get feature and test suite.

The Lighthouse documentation describes how to set up a headless chromium installation here. Referencing this, once the chromium-apt-get feature is developed and tested, I will be creating a pull request to solve the issue.

@effendiian effendiian added the enhancement New feature or request label Jul 27, 2024
@effendiian
Copy link
Author

Updated 2024-07-24 - Created a pull request to fix this issue: #627

@evilhamsterman
Copy link

evilhamsterman commented Oct 8, 2024

This project is not associated with the devcontainer project and appears to have been abandoned #628 . The official project has removed all devcontainer-contrib features from their listing. devcontainers/devcontainers.github.io#451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants