From 7bd738a43c502e89522deadffd534a857e9cfc6e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 29 Jan 2019 18:09:26 +0100 Subject: [PATCH] Dockerfile: Patch oe-git-proxy to truly disable proxying by default Upstream oe-git-proxy has a bug [1] and currently does proxying unconditionally, just being stopped in the absence of other proxy settings. Patch in the fix until upstream picks it up. [1] http://lists.openembedded.org/pipermail/openembedded-core/2019-January/278496.html Signed-off-by: Jan Kiszka Signed-off-by: Daniel Wagner --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e245f20..4f305d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,10 @@ RUN wget -nv -O /usr/bin/gosu "https://github.com/tianon/gosu/releases/download/ chmod +x /usr/bin/gosu RUN wget -nv -O /usr/bin/oe-git-proxy "http://git.yoctoproject.org/cgit/cgit.cgi/poky/plain/scripts/oe-git-proxy" && \ - chmod +x /usr/bin/oe-git-proxy + chmod +x /usr/bin/oe-git-proxy && \ + sed -e 's|for H in \${NO_PROXY//,/ }|for H in "${NO_PROXY//,/ }"|' \ + -e 's| if match_host \$1 \$H| if match_host $1 "$H"|' \ + -i /usr/bin/oe-git-proxy ENV GIT_PROXY_COMMAND="oe-git-proxy" ENV NO_PROXY="*"