Skip to content

docker vitess/vtctlclient: Install curl#7469

Closed
jmoldow wants to merge 1 commit intovitessio:release-9.0from
jmoldow:vtctlclient-curl
Closed

docker vitess/vtctlclient: Install curl#7469
jmoldow wants to merge 1 commit intovitessio:release-9.0from
jmoldow:vtctlclient-curl

Conversation

@jmoldow
Copy link
Contributor

@jmoldow jmoldow commented Feb 8, 2021

Description

Backport of pull request #7466 for release-9.0.

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.

Signed-off-by: Jordan Moldow jmoldow@alum.mit.edu

Checklist

  • Should this PR be backported? - Ideally, yes, so that the change can be included in any v9.0.1 images. Backport of pull request docker vitess/vtctlclient: Install curl #7466.
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

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.

Before this merged to HEAD, https://hub.docker.com/r/vitess/vtctlclient/tags?page=1&ordering=last_updated&name=latest showed Compressed Size as 36.24 MB.

After this merged, it showed Compressed Size as 37.85 MB.

A 4.4% / 1.61 MB increase in Compressed Size.

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI - Docker image vitess/vtctlclient
  • VTAdmin

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 vitessio#7466.

Signed-off-by: Jordan Moldow <jmoldow@alum.mit.edu>
@jmoldow
Copy link
Contributor Author

jmoldow commented Feb 9, 2021

Before this merged to HEAD, https://hub.docker.com/r/vitess/vtctlclient/tags?page=1&ordering=last_updated&name=latest showed Compressed Size as 36.24 MB.

After this merged, it showed Compressed Size as 37.85 MB.

A 4.4% / 1.61 MB increase in Compressed Size.

@jmoldow jmoldow closed this May 3, 2021
@jmoldow jmoldow deleted the vtctlclient-curl branch May 3, 2021 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant