From a7a0454f2c1337c059b08ea849baa6fd91d159a7 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 25 Aug 2021 11:50:10 -0500 Subject: [PATCH] Downgrade Alpine to avoid a DNS issue on older mac docker installs (#1034) Apparently in older linux kernels or docker installs (the alpine bug report isn't sure which), DNS sometimes doesn't work, and we can't build this image since github.com fails to resolve in the second line of this RUN. In Alpine 3.12, unzip doesn't create the directory automatically, so we need to make it ahead of time. Alpine 3.12 EOLs May 1, 2022, we should update by then, decide that we aren't concerned with older kernels (or docker installs), or pick a different image for this proxy. alpinelinux/docker-alpine#155 See #1119 for later followup. --- grpc-proxy/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grpc-proxy/Dockerfile b/grpc-proxy/Dockerfile index 3f85939e41b..ac4e6718ae4 100644 --- a/grpc-proxy/Dockerfile +++ b/grpc-proxy/Dockerfile @@ -1,4 +1,6 @@ -FROM docker.io/library/alpine:3.13 +# Deliberately using old alpine, see issue #1034 in deephaven-core +# See also alpinelinux/docker-alpine#155 +FROM docker.io/library/alpine:3.12 COPY contents/ . @@ -6,6 +8,7 @@ ENV GRPCWEBPROXY_VERSION=v0.13.0 # Note(deephaven-core#599): Consider moving grpcwebproxy DL into gradle RUN set -eux; \ + mkdir /app; \ apk add --no-cache tini; \ wget -q "https://github.com/improbable-eng/grpc-web/releases/download/${GRPCWEBPROXY_VERSION}/grpcwebproxy-${GRPCWEBPROXY_VERSION}-linux-x86_64.zip"; \ sha256sum -c checksums.txt; \