Import ZAP Docker Image in GitLab

僤鯓⒐⒋嵵緔 提交于 2020-01-24 21:58:48

问题


I'm trying to use ZAP in my GitLab repository. (link to the docker image for ZAP: https://github.com/zaproxy/zaproxy/wiki/Docker)

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


回答1:


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

see this

Update

try the following:

docker run -i -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 owasp/zap2docker-weekly zap-cli active-scan targetwebsite


来源:https://stackoverflow.com/questions/58762658/import-zap-docker-image-in-gitlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!