Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while setting up #55

Open
arjun1638 opened this issue Sep 19, 2019 · 1 comment
Open

Error while setting up #55

arjun1638 opened this issue Sep 19, 2019 · 1 comment

Comments

@arjun1638
Copy link

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="[email protected]"
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.

@liuyuan10
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants