Closed Dieterbe closed 8 years ago
been able to make some progress via
diff --git a/grafana/Dockerfile b/grafana/Dockerfile
index b80319a..ccde0ea 100644
--- a/grafana/Dockerfile
+++ b/grafana/Dockerfile
@@ -12,11 +12,11 @@ ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
# insecure due to bosun.org issue with cloudflare
RUN go get -insecure github.com/raintank/grafana || true
-RUN go get github.com/Unknwon/bra
+RUN echo '107.178.216.236 gopkg.in' >> /etc/hosts && go get github.com/Unknwon/bra
RUN go get github.com/tools/godep
WORKDIR /go/src/github.com/grafana/grafana
RUN go run build.go setup
-RUN godep restore
+RUN echo -e '216.58.220.145 golang.org\n64.233.188.82 go.googlesource.com\n107.178.216.236 gopkg.in\n104.16.38.223 bosun.org' >> /etc/hosts && godep restore
RUN go build .
RUN npm install && npm install -g grunt-cli && grunt build
cause it would get hung up on all those dns'es.
however it would always find something new to complain about.
Step 13 : RUN go run build.go setup
---> Using cache
---> 135519c70e17
Step 14 : RUN echo -e '216.58.220.145 golang.org\n64.233.188.82 go.googlesource.com\n107.178.216.236 gopkg.in\n104.16.38.223 bosun.org' >> /etc/hosts && godep restore
---> Running in 3a7f11daf2d2
godep: error downloading dep (golang.org/x/net/context): unrecognized import path "golang.org/x/net/context"
godep: error downloading dep (golang.org/x/oauth2): unrecognized import path "golang.org/x/oauth2"
godep: Error downloading some deps. Aborting restore and check.
The command '/bin/sh -c echo -e '216.58.220.145 golang.org\n64.233.188.82 go.googlesource.com\n107.178.216.236 gopkg.in\n104.16.38.223 bosun.org' >> /etc/hosts && godep restore' returned a non-zero code: 1
ERROR: failed building grafana. stopping.
now tried to override the docker daemon dns:
cat /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --exec-opt native.cgroupdriver=cgroupfs --dns 8.8.8.8
ps aux | grep docker ⏎
root 22880 0.3 0.1 980464 46160 ? Ssl 14:02 0:00 /usr/bin/docker daemon -H fd:// --exec-opt native.cgroupdriver=cgroupfs --dns 8.8.8.8
resulting in
Step 10 : RUN go get github.com/Unknwon/bra
---> Running in c25e1c10e02a
# cd .; git clone https://github.com/Unknwon/bra /go/src/github.com/Unknwon/bra
Cloning into '/go/src/github.com/Unknwon/bra'...
fatal: unable to access 'https://github.com/Unknwon/bra/': Could not resolve host: github.com
package github.com/Unknwon/bra: exit status 128
The command '/bin/sh -c go get github.com/Unknwon/bra' returned a non-zero code: 1
ERROR: failed building grafana. stopping.
~/g/s/g/r/raintank-docker ❯❯❯ dig @8.8.8.8 github.com
; <<>> DiG 9.10.3-P2 <<>> @8.8.8.8 github.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
thinking my motel wifi dns is really bad and even blocks google dns :?
using 8.8.4.4 works fine and solves all those issues for me /shrug.
for the record, i was also getting
~/g/s/g/r/raintank-docker ❯❯❯ docker pull hopsoft/graphite-statsd ⏎
Using default tag: latest
Pulling repository docker.io/hopsoft/graphite-statsd
Error while pulling image: Get https://index.docker.io/v1/repositories/hopsoft/graphite-statsd/images: dial tcp: lookup index.docker.io on 10.10.24.1:53: no such host
even though index.docker.io resolved fine with my local dns as well as 8.8.4.4! i changed resolv.conf to 8.8.4.4 and that made that work as well
anyone else getting this recently? as you can see below it's ambiguous whether it's a dns lookup error or go error. i suspect it may have something to do with the dns of the motel i'm staying at, but frustratingly
go get github.com/Unknwon/bra
on my laptop host works fine, but running from docker (using same dns server) seems to fail, even when i add it to /etc/hosts.