Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Expose VARNISH_{STATE_DIR,DEFAULT_REL_NAME} in installed headers#4447

Open
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:workdir_header
Open

Expose VARNISH_{STATE_DIR,DEFAULT_REL_NAME} in installed headers#4447
gquintard wants to merge 1 commit intovarnishcache:masterfrom
gquintard:workdir_header

Conversation

@gquintard
Copy link
Copy Markdown
Member

note: this doesn't compete with #444

Varnish has a lot of runtime dependencies, mainly because of the C compiler, and this is an obstacle for VSM tools trying to reduce the size of their container images.

Exposing VARNISH_{STATE_DIR,DEFAULT_REL_NAME} in a new header allows languages such has go and rust to discover the default workdir at compile-time, and skip the runtime dependency on varnish

Varnish has a lot of runtime dependencies, mainly because of the C
compiler, and this is an obstacle for VSM tools trying to reduce the
size of their container images.

Exposing `VARNISH_{STATE_DIR,DEFAULT_REL_NAME}` in a new header allows
languages such has `go` and `rust` to discover the default workdir at
compile-time, and skip the runtime dependency on `varnish`

Co-authored-by: GitHub Copilot <github-copilot@github.com>
@bsdphk
Copy link
Copy Markdown
Contributor

bsdphk commented Feb 11, 2026

I'm a bit confused here... How would a container image have any need for VSM if there is no varnish in it ?

@gquintard
Copy link
Copy Markdown
Member Author

I think you have the question backwards :-) I reckon it should be "Why should I need Varnish to read the VSM?"

Container platforms (docker compose, kubernetes, etc.) allow you to share directories between containers running as a group ("pod" in k8s lingo), which allows varnishd to be running in one container and whatever metrics exporter you want in another.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants