<div dir="ltr">Hi Brice,<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The way I'm reading this dockerfile, you're using the official debian 8 (already compiled) varnish package?</blockquote></div><div><br></div><div>If you're looking at the Dockerfile from my last message, that was an example to show that it is possible to use a system package, but problematic because some Varnish Modules cannot be installed based on that package. The <a href="https://github.com/newsdev/docker-varnish/blob/master/Dockerfile" target="_blank">Dockerfile in our repo</a> installs from source. Sorry if that was unclear!</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Perhaps a bit off-topic, but it's generally a good approach to build from source -- and using a build system to allow quick distribution of alternate versions (such as running a specific commit/release). So I think building from source does make sense. </blockquote></div><div><br></div><div>Totally agree :)</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Also helpful to offer more base images, and recommend alpine:latest as a lightweight alternative to debian:jessie </blockquote></div><div><br></div><div>Most official Dockerfiles are based on Debian, so we bend with this community practice. To move towards an official image repository, we should have one image.</div><div><br></div><div>Thanks,</div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="arial, helvetica, sans-serif">Eric Lewis</font><div><font face="arial, helvetica, sans-serif">Web Developer, Interactive News</font></div><div><font face="arial, helvetica, sans-serif" color="#cccccc">The New York Times</font></div><div><font face="arial, helvetica, sans-serif" color="#cccccc">620 Eighth Avenue, 2nd Floor</font></div><div><font face="arial, helvetica, sans-serif" color="#cccccc">New York, NY 10018</font></div><div><font face="arial, helvetica, sans-serif" color="#cccccc">Office: <a href="tel:%28212%29%20556-2081" value="+12125562081" target="_blank">(212) 556-2081</a></font></div><div><font face="arial, helvetica, sans-serif" color="#cccccc">Cell: <a href="tel:%28610%29%20715-8560" value="+16107158560" target="_blank">(610) 715-8560</a></font></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Dec 10, 2015 at 12:37 AM, Brice Burgess <span dir="ltr"><<a href="mailto:nesta@iceburg.net" target="_blank">nesta@iceburg.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Eric,<br>
<br>
The way I'm reading this dockerfile, you're using the official
debian 8 (already compiled) varnish package?<br>
<br>
Perhaps a bit off-topic, but it's generally a good approach to build
from source -- and using a build system to allow quick distribution
of alternate versions (such as running a specific commit/release).
So I think building from source does make sense. <br>
<br>
Docker plays very nicely here with with flexible version-tagging of
images and 1.9 supports build arguments. Also helpful to offer more
base images, and recommend alpine:latest as a lightweight
alternative to debian:jessie (haven't personally compiled varnish on
busybox/musl, although 4.1.0 exists as an alpine package). <br>
<br>
<br>
~ Brice<div><div><br>
<br>
<div>On 12/09/2015 12:55 PM, Lewis, Eric
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div>
<div dir="ltr">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8px">Not a big deal, since the Docker
containers will presumably be for </span><span style="font-size:12.8px">specific versions. It's just for
the 4.x containers, the sources won't </span><span style="font-size:12.8px">be necessary, at least not for
building VMODs.</span></blockquote>
<div><br>
</div>
This is great to hear! I've <a href="https://gist.github.com/ericandrewlewis/20d531d190d71e92f3b6" target="_blank">put
together a quick Dockerfile</a> that uses Debian packages to
install the latest stable (4.0.3). On top of this, I was able to
install the <a href="https://github.com/varnish/libvmod-example" target="_blank">example
module</a> with ease.
<div><br>
</div>
<div>However, other Varnish modules <a href="https://github.com/Dridi/libvmod-querystring/issues/16" target="_blank">can't
be built so easily on 4.0 yet</a>. 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.</div>
<div><br>
</div>
<div>Until there's more support for this in modules, installing
Varnish from source seems like the best default, so users
don't get burned.</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font face="arial, helvetica,
sans-serif">Eric Lewis</font>
<div><font face="arial, helvetica, sans-serif">Web
Developer, Interactive News</font></div>
<div><font face="arial, helvetica, sans-serif" color="#cccccc">The New York Times</font></div>
<div><font face="arial, helvetica, sans-serif" color="#cccccc">620 Eighth Avenue, 2nd Floor</font></div>
<div><font face="arial, helvetica, sans-serif" color="#cccccc">New York, NY 10018</font></div>
<div><font face="arial, helvetica, sans-serif" color="#cccccc">Office: <a href="tel:%28212%29%20556-2081" value="+12125562081" target="_blank">(212) 556-2081</a></font></div>
<div><font face="arial, helvetica, sans-serif" color="#cccccc">Cell: <a href="tel:%28610%29%20715-8560" value="+16107158560" target="_blank">(610) 715-8560</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Wed, Dec 9, 2015 at 4:57 AM, Geoff
Simmons <span dir="ltr"><<a href="mailto:geoff@uplex.de" target="_blank">geoff@uplex.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN
PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<span><br>
On 12/08/2015 10:33 PM, Lewis, Eric wrote:<br>
><br>
> I'd like to solicit feedback from you and invite the
Varnish<br>
> community to contribute to this effort.<br>
><br>
> Most Dockerfiles install Varnish via a linux package
manager,<br>
> which makes it impossible to install VMODs because
they need to be<br>
> compiled against Varnish source.<br>
<br>
</span>That's true of Varnish 3.x, but not since 4.0 --
VMODs are now built<br>
against a Varnish installation, which has all of the
necessary headers<br>
and libs. It should be enough just to have pkg-config return
the<br>
correct information for 'varnishapi', which will be the case
without<br>
further intervention in a default Varnish installation.<br>
<br>
Not a big deal, since the Docker containers will presumably
be for<br>
specific versions. It's just for the 4.x containers, the
sources won't<br>
be necessary, at least not for building VMODs.<br>
<br>
<br>
Best,<br>
Geoff<br>
- --<br>
** * * UPLEX - Nils Goroll Systemoptimierung<br>
<br>
Scheffelstraße 32<br>
22301 Hamburg<br>
<br>
Tel <a href="tel:%2B49%2040%202880%205731" value="+494028805731" target="_blank">+49
40 2880 5731</a><br>
Mob <a href="tel:%2B49%20176%20636%2090917" value="+4917663690917" target="_blank">+49 176 636 90917</a><br>
Fax <a href="tel:%2B49%2040%2042949753" value="+494042949753" target="_blank">+49
40 42949753</a><br>
<br>
<a href="http://uplex.de" rel="noreferrer" target="_blank">http://uplex.de</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
iQIcBAEBCAAGBQJWZ/rjAAoJEOUwvh9pJNURoX4QAK9Ds9lgBlISF1CrDntwAChe<br>
ZX3cHXPcCaE+mUR8t+ESKF6I1t9ewf9jFVjrHi2oW6ZVHUAx+fQbdEvULi4PzfUj<br>
zumWrtzOA9kAx55ECBBCOxthZ7fLyDKSZxrJxeJVMpm5p4L46KyjEUUEDdm/FLZN<br>
cWUTIweHdfgroW+7McqxFlVRMiDDUEcoBXoAI9P23BXVl3doKBx/bAfyZUR6yn0y<br>
ESdZVKhlH2cdN1tFSuFO/v6Qd6YrhMPyG30d94UgZ1pUmzpqKNSQx4SkX1LU5jzx<br>
XJMXC9AcJzFTzMdGRfIOHFu0Opx2QIRQii5AOd58Bv3HmEjpZJFnJuwclfkSBxPK<br>
4ASI3/Q/8LL3u5s2XGT7R4qNK095swP9kYPLDAclBMe/VDNyBpwdkbOm69yr3rhk<br>
j0u0ErkDUFOVucS5jXSt9LxS/7EX5WexDNIrQA+E8Uab2IbzaznMKS/xgKfrHcl1<br>
WZSwTj/2in8QqaxIzYKAVjrXlRgEnn0QAR6+ZKe0+Str0I4BMw0zJ6Yb+DLJlw0t<br>
cKfBZ9rNLr+MqAsJ7YMyhHUgmuI9LIyHWr/hbhgqccM5LIURy7ZGISJ5MrAUyi1k<br>
9ONKivNZc4Y+oAsQLxFhfwRWQ39ExerJMNjWIEx3SxpV+DEFk5iJ7RBT4KY3mfXe<br>
E4VJJ+ueBbfztEHaaFG2<br>
=jo7N<br>
-----END PGP SIGNATURE-----<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
varnish-misc mailing list
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div></div>