Varnish and Docker
eric.lewis at nytimes.com
Wed Dec 9 18:55:34 CET 2015
> Not a big deal, since the Docker containers will presumably be for specific
> versions. It's just for the 4.x containers, the sources won't be
> necessary, at least not for building VMODs.
This is great to hear! I've put together a quick Dockerfile
<https://gist.github.com/ericandrewlewis/20d531d190d71e92f3b6> that uses
Debian packages to install the latest stable (4.0.3). On top of this, I was
able to install the example module
<https://github.com/varnish/libvmod-example> with ease.
However, other Varnish modules can't be built so easily on 4.0 yet
<https://github.com/Dridi/libvmod-querystring/issues/16>. Module authors
need to update their modules to build from the Varnish installation with
4.0 instead of from source. Perhaps we could reach out to the VMOD
developer community about this.
Until there's more support for this in modules, installing Varnish from
source seems like the best default, so users don't get burned.
Web Developer, Interactive News
The New York Times
620 Eighth Avenue, 2nd Floor
New York, NY 10018
Office: (212) 556-2081
Cell: (610) 715-8560
On Wed, Dec 9, 2015 at 4:57 AM, Geoff Simmons <geoff at uplex.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> On 12/08/2015 10:33 PM, Lewis, Eric wrote:
> > I'd like to solicit feedback from you and invite the Varnish
> > community to contribute to this effort.
> > Most Dockerfiles install Varnish via a linux package manager,
> > which makes it impossible to install VMODs because they need to be
> > compiled against Varnish source.
> That's true of Varnish 3.x, but not since 4.0 -- VMODs are now built
> against a Varnish installation, which has all of the necessary headers
> and libs. It should be enough just to have pkg-config return the
> correct information for 'varnishapi', which will be the case without
> further intervention in a default Varnish installation.
> Not a big deal, since the Docker containers will presumably be for
> specific versions. It's just for the 4.x containers, the sources won't
> be necessary, at least not for building VMODs.
> - --
> ** * * UPLEX - Nils Goroll Systemoptimierung
> Scheffelstraße 32
> 22301 Hamburg
> Tel +49 40 2880 5731
> Mob +49 176 636 90917
> Fax +49 40 42949753
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> -----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc