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:
parent
f24b341745
commit
9370bd6267
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user