Browse code

[ppc64le] allow replacing httpredir in dockerfile

Allows replacing of the default httpredir.debian.org in /etc/apt/sources.list
with a user-specified mirror. This will (hopefully) fix CI apt issues.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>

Christopher Jones authored on 2016/11/30 01:06:45
Showing 1 changed files
... ...
@@ -18,6 +18,10 @@
18 18
 # ppc64le/golang is a debian:jessie based image with golang installed
19 19
 FROM ppc64le/golang:1.6.3
20 20
 
21
+# allow replacing httpredir or deb mirror
22
+ARG APT_MIRROR=deb.debian.org
23
+RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
24
+
21 25
 # Packaged dependencies
22 26
 RUN apt-get update && apt-get install -y \
23 27
 	apparmor \