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 <jan.kiszka@siemens.com>
Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
This commit is contained in:
Jan Kiszka 2019-01-29 18:09:26 +01:00 committed by Daniel Wagner
parent 1b6e3f2fb9
commit 7bd738a43c

View File

@ -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="*"