google/seesaw

Error while setting up

arjun1638 opened this issue · 1 comments

I tried to build a docker image but while performing test i.e "make test". I got the following errors:
--- FAIL: TestHTTPChecker (0.01s)
healthcheck_test.go:144: Failed to get TCP listener: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestHTTPCheckerSecure (0.03s)
healthcheck_test.go:144: Failed to get TCP listener: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestTCPChecker (3.10s)
healthcheck_test.go:249: Failed to get TCP listener: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestUDPChecker (0.00s)
healthcheck_test.go:315: Failed to get UDPConn: listen udp6 [::1]:0: bind: cannot assign requested address

Dockerfile:
FROM ubuntu:xenial
LABEL maintainer="arjun1638@gmail.com"
RUN apt-get update && apt-get -y upgrade
libnl-3-dev libnl-genl-3-dev build-essential git wget
net-tools
iproute
inetutils-ping
curl
python
python-yaml
RUN wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
RUN tar -xvf go1.12.7.linux-amd64.tar.gz
RUN mv go /usr/local/
ENV GOROOT=/usr/local/go
ENV GOPATH=$HOME/Projects/Proj1
ENV GOBIN=$GOPATH/bin
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH

#seesaw setup
RUN go get -u golang.org/x/crypto/ssh
RUN go get -u github.com/dlintw/goconf
RUN go get -u github.com/golang/glog
RUN go get -u github.com/miekg/dns
RUN go get -u github.com/kylelemons/godebug/pretty
RUN go get -u github.com/golang/protobuf/proto

RUN mkdir -p ${GOPATH}/src/github.com/google
RUN cd ${GOPATH}/src/github.com/google && git clone https://github.com/google/seesaw
RUN cd ${GOPATH}/src/github.com/google/seesaw && make test


Any help would be greatly appreciated.

I don't know if anyone ever runs seesaw as a docker container. You'll need to get it work. But in docker build, you don't need to run make test. just make install