在GitLab中导入ZAP Docker映像 [英] Import ZAP Docker Image in GitLab
本文介绍了在GitLab中导入ZAP Docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在GitLab存储库中使用ZAP。
(链接到ZAP的docker映像: https://github.com/zaproxy / zaproxy / wiki / Docker )
I'm trying to use ZAP in my GitLab repository. (link to the docker image for ZAP: https://github.com/zaproxy/zaproxy/wiki/Docker)
但是在执行 yml文件中的脚本时,出现了代理错误,现在,经过一些修改后,出现此错误:
But during the execution of the script in the 'yml' file, I got the 'proxy' error, now instead, after some modifications, I get this error:
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 621, in main
raise RuntimeError ('Click will abort further execution'
RuntimeError: Click will abort further execution because Python is configured to use ASCII as encoding for the environment. Either switch to Python 2 or consult http://click.pocoo.org/python3/ for mitigation steps.
有人有同样的问题或知道如何解决吗?
谢谢大家
Has anyone already had the same problem or knows how I could solve it? Thank you all
推荐答案
尝试将这些添加到您的Dockerfile中:
try to add those to your Dockerfile:
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ARG LC_ALL=C.UTF-8
ARG LANG=C.UTF-8
请参见此
更新
尝试以下操作:
docker run -i -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 owasp/zap2docker-weekly zap-cli active-scan targetwebsite
这篇关于在GitLab中导入ZAP Docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文