Closed adriendupuis closed 3 years ago
Hi @adriendupuis ,
The message is not absurd once you now what's going on, but I get how it can be confusing. In Varnish > 7.0, the workdir is set to /var/lib/varnish/$HOSTNAME
by default. This led to problems with docker-compose
setups where varnishd
is running in one container with a hostname, and varnishlog
is running in another, and they never meet.
So, we work around that by injecting wrapper scripts that will inject -n /var/lib/varnish
in front of the varnish binaries. It works well most of the time, but will fail when you need to specify the first argument like you do, or when you have an incompatible argument (-r $FILE
with varnishlogd
for example).
To work around the work around, use the absolute path of the binary, that way you will get to the true binary directly, rather than the wrapper script.
For varnish-modules
, the images should include varnish-dev
, I'll check
ok, in the debian case, the do install varnish-dev
, but we the remove the build dependencies, including pkg-config
. And that one is also a dependency of varnish-dev
which get transitively removed.
keeping pkg-config
around would mean fattening the image quite a bit (~130MB) and we don't want to do that. Instead we are going to dump the deb
files into /pkgs
and let you install it manually prior to compiling the vmods.
fixed by efa8f60de4abc4f388343bcc4088c2564aa89be7 and https://github.com/docker-library/official-images/pull/10968
Hi,
I had to renew my Docker containers built before summer 2021 and I'm experimenting strange behaviors with 6.0.8 and 6.0.7 images.
I used
varnish -V
just to check what patchvarnish:6.0
image is retrieving. But it now answers with an absurd error:This
varnishd -V
error occurs withvarnish:6.0.8
andvarnish:6.0.7
but not withvarnish:6.0.6
.I also used to add Varnish Modules 0.15.0. to Varnish 6.0. Two problems occurs recently. First with the package containing the
varnishapi
, second while building vmods:varnish:6.0.8
:varnish-dev
package can't be found anymore. I replace it withlibvarnishapi-dev
but after./configure
, themake
will stop with a lot of errors ([-Werror=incompatible-pointer-types]
,[-Werror=deprecated-declarations]
, …).varnish:6.0.7
:varnish-dev
package is found but can't be installed because of dependencies issues: "Depends: varnish (= 6.0.8-1~buster) but 6.1.1-1+deb10u1 is to be installed
".libvarnishapi-dev
doesn't fix,make
stops with few …struct director' has no member named
… errors.varnish:6.0.6
:varnish-dev
package is found and installed.make && make install
run well and vmods are installed.The simple fix for me having my setup working again was to replace
varnish:6.0
withvarnish:6.0.6
. But I thought you need to know those issues with the last two patches.Best regards, Adrien