From 0b1ea6287e06acf197f14da18481a7e67e1b4d25 Mon Sep 17 00:00:00 2001 From: Jordan Moldow Date: Mon, 8 Feb 2021 10:57:05 -0800 Subject: [PATCH] docker vitess/vtctlclient: Install curl Install curl into the docker image vitess/vtctlclient. That way, for clients using this container, not only can they interact with vtctld via vtctlclient, but they can also interact with vtctld and other Vitess components via their HTTP APIs, and can also interact with the Kubernetes API server over HTTP. When tested with Docker Desktop for Mac, Docker version 20.10.2, using the command docker build --compress -f Dockerfile -t "vitess/vtctlclient:latest" . the original Dockerfile generates an artifact that is 94.4MB (according to docker image ls), whereas the new Dockerfile generates a 102MB image, about an 8% increase in the image's size. Backport of pull request #7466. Signed-off-by: Jordan Moldow --- docker/k8s/vtctlclient/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/k8s/vtctlclient/Dockerfile b/docker/k8s/vtctlclient/Dockerfile index 4f50a333ea9..5ed9ba0d613 100644 --- a/docker/k8s/vtctlclient/Dockerfile +++ b/docker/k8s/vtctlclient/Dockerfile @@ -20,7 +20,7 @@ FROM debian:buster-slim RUN apt-get update && \ apt-get upgrade -qq && \ - apt-get install jq -qq --no-install-recommends && \ + apt-get install jq curl -qq --no-install-recommends && \ apt-get autoremove && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*