xray icon indicating copy to clipboard operation
xray copied to clipboard

Can not build docker

Open stackpivot opened this issue 6 years ago • 1 comments

When trying to build docker container, the build process fails with

docker build -t xraydocker .

Sending build context to Docker daemon  8.898MB
Step 1/7 : FROM golang:alpine
alpine: Pulling from library/golang
ff3a5c916c92: Already exists 
f32d2ea73378: Pull complete 
c6678747892c: Pull complete 
16b5f22d8b23: Pull complete 
Digest: sha256:356aea725be911d52e0f2f0344a17ac3d97c54c74d50b8561f58eae6cc0871bf
Status: Downloaded newer image for golang:alpine
 ---> 52d894fca6d4
Step 2/7 : RUN apk add --no-cache git make
 ---> Running in 1b2b08f249a0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/6) Installing libssh2 (1.8.0-r2)
(2/6) Installing libcurl (7.59.0-r0)
(3/6) Installing expat (2.2.5-r0)
(4/6) Installing pcre2 (10.30-r0)
(5/6) Installing git (2.15.0-r1)
(6/6) Installing make (4.2.1-r0)
Executing busybox-1.27.2-r7.trigger
OK: 19 MiB in 18 packages
Removing intermediate container 1b2b08f249a0
 ---> 78904c9a833a
Step 3/7 : RUN go get github.com/evilsocket/xray &&     cd $GOPATH/src/github.com/evilsocket/xray/ &&     make get_glide &&     make install_dependencies &&     go get -u github.com/jteeuwen/go-bindata/... &&     make build
 ---> Running in 20eba2238519
# github.com/evilsocket/xray
src/github.com/evilsocket/xray/target.go:116:47: not enough arguments in call to t.ctx.Shodan.GetServicesForHost
	have (string, *shodan.HostServicesOptions)
	want (context.Context, string, *shodan.HostServicesOptions)
The command '/bin/sh -c go get github.com/evilsocket/xray &&     cd $GOPATH/src/github.com/evilsocket/xray/ &&     make get_glide &&     make install_dependencies &&     go get -u github.com/jteeuwen/go-bindata/... &&     make build' returned a non-zero 

Im guessing there were some API changes

stackpivot avatar Apr 17 '18 05:04 stackpivot

go api func (c *Client) GetServicesForHost(ctx context.Context, ip string, options *HostServicesOptions) (*Host, error) xray info, err := t.ctx.Shodan.GetServicesForHost(t.Address, &shodan.HostServicesOptions{ History: false, Minify: true, }) I don't know how to change.

Mustard404 avatar Jun 25 '18 01:06 Mustard404