Skip to content

Decrease proxy and web Docker image sizes#3384

Merged
siggy merged 1 commit intomasterfrom
siggy/lil-dockers-on-the-hillside
Sep 5, 2019
Merged

Decrease proxy and web Docker image sizes#3384
siggy merged 1 commit intomasterfrom
siggy/lil-dockers-on-the-hillside

Conversation

@siggy
Copy link
Member

@siggy siggy commented Sep 5, 2019

The proxy and web Docker images were 161MB and 186MB, respectively.
Most of the space was tools installed into the linkerd.io/base image.

Decrease proxy and web Docker images to 73MB and 90MB, respectively.
Switch these images to be based off of debian:stretch-20190812-slim.
Also set -ldflags "-s -w" for proxy-identity and web. Modify
linkerd.io/base to also be based off of
debian:stretch-20190812-slim, update tag to 2019-09-04.01.

Fixes #3383

Signed-off-by: Andrew Seigner siggy@buoyant.io

The `proxy` and `web` Docker images were 161MB and 186MB, respectively.
Most of the space was tools installed into the `linkerd.io/base` image.

Decrease `proxy` and `web` Docker images to 73MB and 90MB, respectively.
Switch these images to be based off of `debian:stretch-20190812-slim`.
Also set `-ldflags "-s -w"` for `proxy-identity` and `web`. Modify
`linkerd.io/base` to also be based off of
`debian:stretch-20190812-slim`, update tag to `2019-09-04.01`.

Fixes #3383

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
@siggy siggy self-assigned this Sep 5, 2019
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems amenable to me. We'll probably want to call out the user-facing impacts of this in the CHANGES (specifically that the proxy no longer bundles debug tooling)

@siggy siggy merged commit 89deacd into master Sep 5, 2019
@siggy siggy deleted the siggy/lil-dockers-on-the-hillside branch September 5, 2019 18:28
@siggy siggy mentioned this pull request Sep 5, 2019
siggy added a commit to linkerd/linkerd2-proxy-init that referenced this pull request Sep 5, 2019
The Dockerfile was built on `linkerd.io/base`, which included debug
tools that increased its size.

Build the Docker image directly on debian, only installing iptables.
Also remove the dependency on `linkerd.io/go-deps`, and intead build
directly off of golang, using Go Modules for dependencies.

Similar to linkerd/linkerd2#3384

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
siggy added a commit to linkerd/linkerd2-proxy-init that referenced this pull request Sep 5, 2019
The Dockerfile was built on `linkerd.io/base`, which included debug
tools that increased its size.

Build the Docker image directly on debian, only installing iptables.
Also remove the dependency on `linkerd.io/go-deps`, and instead build
directly off of golang, using Go Modules for dependencies.

Similar to linkerd/linkerd2#3384

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decrease Docker image sizes

2 participants