How to edit the dependency scanner docker image
I wanted to install few system dependencies like libxml2 and libxslt so that if I have "dparse==0.4.1" in my requirement.txt it won't fail the scan. dparse have dependency on pyparsing which need libxml2 and libxslt installed.
I came across two projects:
- https://gitlab.com/gitlab-org/security-products/analyzers/gemnasium-python
- https://gitlab.com/gitlab-org/security-products/analyzers/common
My assumption was to edit the Dockerfile in gemnasium-python to install libxml2 and libxslt and generate the docker image. But the last step in the Docker file COPY analyzer / fails as there is no analyser folder in gemnasium-python repo.
So I headed down to analyzers/common and tried to build it but
GOOS=linux go build -o analyzer gives me below error:
can't load package: package .: no Go files in /home/gitlab_scanners/common
I'm new to go, so might be missing something here, can you please let me know how to build the common project and generate the analyser folder. Not sure if this is sequence , please feel to point me in the right direction, if there step are ridiculous.