Skip to content

Reducing Binary Sizes in Packages #12768

@andrewkroh

Description

@andrewkroh

I ran a few tests to see what options we have for shrinking our binary sizes. We might want to consider making some changes.

Filebeat Size (linux/amd64) Build Options
85MB (current) golang-crossbuild:1.12.4-main-debian7, GCC 4.7.2
57MB golang-crossbuild:1.12.4-main, GCC 6.3.0* (provides zlib compressed debug symbols)
42MB golang-crossbuild:1.12.4-main, GCC 6.3.0, -ldflags "-w -s" (stripped)
15MB golang-crossbuild:1.12.4-main, GCC 6.3.0, -ldflags "-w -s" (stripped), UPX

* GCC 6.3.0 is part of the debian 9 golang-crossbuild images so it has a newer glibc requirement.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions