Skip to content

Commit

Permalink
add a default nsswitch.conf file
Browse files Browse the repository at this point in the history
the go networking stack will hit dns first unless you configure it
otherwise

without this, grpc_health_probe can fail to hit localhost due to slow
external dns

Signed-off-by: Evan Cordell <cordell.evan@gmail.com>
  • Loading branch information
ecordell committed Sep 2, 2021
1 parent fffa067 commit a3c3b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN go build ./cmd/zed-testserver/

FROM alpine:3.14.2

RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
COPY --from=build /go/bin/grpc_health_probe /usr/local/bin/
COPY --from=build /go/src/app/spicedb /usr/local/bin/spicedb
COPY --from=build /go/src/app/zed-testserver /usr/local/bin/zed-testserver
Expand Down

0 comments on commit a3c3b7d

Please sign in to comment.