Add Docker TAGLINE env customization for modern frontend slogan#794
Merged
Conversation
Agent-Logs-Url: https://github.com/librespeed/speedtest/sessions/e1da6e0e-5194-453d-bffb-961ed782e215 Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/librespeed/speedtest/sessions/e1da6e0e-5194-453d-bffb-961ed782e215 Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add customizable slogan and logo for Docker image
Add Docker Apr 18, 2026
TAGLINE env customization for modern frontend slogan
Contributor
Review Summary by QodoAdd Docker TAGLINE env customization for modern UI slogan
WalkthroughsDescription• Add Docker TAGLINE environment variable for modern UI customization • Implement tagline templating in entrypoint with HTML/sed escaping • Set default tagline in both Dockerfile and Dockerfile.alpine • Extend E2E tests to verify custom and default tagline rendering • Update Docker documentation with TAGLINE variable and compose example Diagramflowchart LR
A["Docker entrypoint.sh"] -->|"Process TAGLINE env"| B["HTML escape & sed escape"]
B -->|"Replace in index-modern.html"| C["Modern UI with custom tagline"]
D["Dockerfile/Dockerfile.alpine"] -->|"Set default TAGLINE"| E["Environment variables"]
E -->|"Pass to container"| C
F["E2E tests"] -->|"Verify tagline rendering"| C
G["doc_docker.md"] -->|"Document TAGLINE"| H["Docker documentation"]
File Changes1. docker/entrypoint.sh
|
Contributor
Code Review by Qodo
1. Sed breaks on apostrophes
|
- Switch TAGLINE sed from '#' to '/' delimiter so html_escape'd apostrophes (') don't break the sed expression - Add standalone-apostrophe Docker service with TAGLINE="It'd rather be fast!" - Add standaloneApostrophe URL (port 18186) to env.js - Add E2E test asserting the apostrophe tagline renders correctly Agent-Logs-Url: https://github.com/librespeed/speedtest/sessions/ebe265a8-4b1e-49b5-959a-66133ea0ab3a Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
sstidl
approved these changes
Apr 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docker/entrypoint.sh: switch TAGLINE sed delimiter from#to/(apostrophe →'contains#, breaking the#-delimited sed)standalone-apostropheservice intests/docker-compose-playwright.ymlwithTAGLINE="It'd rather be fast!"standaloneApostropheURL (port 18186) totests/e2e/helpers/env.jstitle-special-chars.spec.js