From c36de35025aa21746b08332b3dc7aff668a2b9b1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Nov 2014 12:48:50 -0800 Subject: [PATCH] package-cache/README.md: Drop jq dependency Use Docker's built-in Go templating instead. --- package-cache/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package-cache/README.md b/package-cache/README.md index 3a863ec..cf167a2 100644 --- a/package-cache/README.md +++ b/package-cache/README.md @@ -5,10 +5,9 @@ Run this [package-cache][] image with: [volume-mounting][volume-mount] your content under the container's `/usr/portage`. Then setup you host firewall to intercept outgoing connections to [distfiles.gentoo.org][] and redirect them to the -package cacher. Use [jq][] to extract the package-cache IP address: +package cacher. Get the package-cache IP address: - # CACHE_IP=$(docker inspect package-cache-0 | - > jq -r '.[0].NetworkSettings.IPAddress') + # CACHE_IP=$(docker -f '{{ .NetworkSettings.IPAddress }}' inspect package-cache-0) And add a destination address translation rule, using [dig][] to list IP addresses for the source: @@ -34,5 +33,4 @@ for more details. [package-cache]: http://blog.tremily.us/posts/package-cache/ [volume-mount]: http://docs.docker.io/en/latest/use/working_with_volumes/ [distfiles.gentoo.org]: http://distfiles.gentoo.org/ -[jq]: http://stedolan.github.io/jq/ [dig]: ftp://ftp.isc.org/isc/bind9/cur/9.9/doc/arm/man.dig.html -- 2.26.2