sitespeedio / sitespeedio/sitespeed.io

lighthouse + npm + inside docker using shell file provided for npm installs

Open
#4,442 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5k
Forks
624
Avg merge
4h 8m
Merged PRs (30d)
2

Description

Your question

I am unable to use lighthouse and google page speed index with sitespeed.io and I was not able to find any configuration for it

I am using dockerfile in which I use the shell file provided for sitespeed installation using npm

FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get install -y \
    curl \
    wget \
    bash \
    ca-certificates \
    sudo \
    git \
    && rm -rf /var/lib/apt/lists/*
COPY docker_files/install-sitespeed.io-and-dependencies-ubuntu.sh /install-sitespeed-ubuntu.sh
RUN chmod +x /install-sitespeed-ubuntu.sh
RUN /install-sitespeed-ubuntu.sh
WORKDIR /sitespeed.io
CMD ["bash"]

The command I am running is as follows
sitespeedio@b241c2e33d32:~$ sitespeed.io https://www.sitespeed.io --xvfb -b chrome --video false --visualmetrics false --headless true --browsertime.chrome.args no-sandbox

How can I include lighthouse and gpsi metrics in this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Dockerfile and docker_files/install-sitespeed.io-and-dependencies-ubuntu.sh to understand how sitespeed.io and its dependencies are installed. Then inspect the sitespeed.io command and its browser options, using the requested Lighthouse and GPSI metrics as the completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, shell
Domain
devops, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.