future-architect / vuls

Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices
https://vuls.io/
GNU General Public License v3.0
10.98k stars 1.16k forks source link

Failed to setup vuls docker #170

Closed akmalhisyam closed 8 years ago

akmalhisyam commented 8 years ago

Running docker-compose up -d failed with this errors:

# github.com/future-architect/vuls/report
report/slack.go:209: cveInfo.CveDetail.CweID undefined (type "github.com/future-architect/vuls/vendor/github.com/kotakanbe/go-cve-dictionary/models".CveDetail has no field or method CweID)
report/tui.go:694: cveInfo.CveDetail.CweID undefined (type "github.com/future-architect/vuls/vendor/github.com/kotakanbe/go-cve-dictionary/models".CveDetail has no field or method CweID)
report/util.go:229: cveDetail.CweID undefined (type "github.com/future-architect/vuls/vendor/github.com/kotakanbe/go-cve-dictionary/models".CveDetail has no field or method CweID)
report/util.go:230: cveDetail.CweID undefined (type "github.com/future-architect/vuls/vendor/github.com/kotakanbe/go-cve-dictionary/models".CveDetail has no field or method CweID)
report/util.go:272: cveDetail.CweID undefined (type "github.com/future-architect/vuls/vendor/github.com/kotakanbe/go-cve-dictionary/models".CveDetail has no field or method CweID)
ERROR: Service 'vuls' failed to build: The command '/bin/sh -c go get -v -d github.com/future-architect/vuls     && cd $GOPATH/src/github.com/future-architect/vuls     && glide install     && go install' returned a non-zero code: 2

This is my dependencies version

root@asdf:~# go version
go version go1.6 linux/amd64
root@asdf:~# docker version
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64
root@asdf:~# docker-compose --version
docker-compose version 1.8.0, build f3628c7
root@asdf:~# git version
git version 2.9.3
root@asdf:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l
kotakanbe commented 8 years ago

Thanks for reporting. I will try it out later.

kotakanbe commented 8 years ago

I fixed the bug. Please try it out :)

akmalhisyam commented 8 years ago

yep its fine now. Thank you for the quick response!