From 20e0ed77f203b84f699ea6d72d0e4f7b662d5d51 Mon Sep 17 00:00:00 2001 From: Joshua Humphries <2035234+jhump@users.noreply.github.com> Date: Tue, 16 May 2023 17:46:12 -0400 Subject: [PATCH] Don't try to open browser when running in Docker (#246) If I use the `-it` flags with `docker run`, the tool realizes it's in interactive mode, so it tries to open a browser. But that doesn't work from inside a container. Here's the error I see: ``` Failed to open browser: exec: "xdg-open": executable file not found in $PATH ``` It's not a fatal error, so the tool still works. It's just a nuisance error in the output. This one-liner should remedy that. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 08c28f1..c3a51f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ COPY --from=builder /grpcui /bin/grpcui USER grpcui EXPOSE 8080 -ENTRYPOINT ["/bin/grpcui", "-bind=0.0.0.0", "-port=8080"] +ENTRYPOINT ["/bin/grpcui", "-bind=0.0.0.0", "-port=8080", "-open-browser=false"]