google / google/seesaw

Error while setting up

Open
#55 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.7k
Forks
505
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.