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

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

@effendiian

Description

@effendiian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions