docker: isar: configure sudo to keep proxy env variables

Keep proxy related env variables when running commands with sudo.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
[ext] Henning Schild 2017-11-02 14:11:58 +01:00 committed by Daniel Wagner
parent f24b341745
commit 9370bd6267

View File

@ -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