From 9370bd626745544955a67defd6bc5b25959134ed Mon Sep 17 00:00:00 2001 From: "[ext] Henning Schild" Date: Thu, 2 Nov 2017 14:11:58 +0100 Subject: [PATCH] docker: isar: configure sudo to keep proxy env variables Keep proxy related env variables when running commands with sudo. Signed-off-by: Henning Schild --- Dockerfile.isar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.isar b/Dockerfile.isar index ea644b4..8a77087 100644 --- a/Dockerfile.isar +++ b/Dockerfile.isar @@ -21,4 +21,7 @@ RUN apt-get update && \ RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \ chmod 660 /etc/sudoers.d/builder-nopasswd +RUN echo "Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy\"" \ + > /etc/sudoers.d/env_keep && chmod 660 /etc/sudoers.d/env_keep + RUN sed -i "s|#!/bin/bash|\0\n\nupdate-binfmts --enable|" /kas/docker-entrypoint