Open effendiian opened 4 months ago
Updated 2024-07-24 - Created a pull request to fix this issue: https://github.com/devcontainers-contrib/features/pull/627
This project is not associated with the devcontainer project and appears to have been abandoned https://github.com/devcontainers-contrib/features/issues/628 . The official project has removed all devcontainer-contrib features from their listing. https://github.com/devcontainers/devcontainers.github.io/issues/451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features
Requested Feature
chromium-apt-get
Add
chromium
feature to allow headless browser installation using theapt-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: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.