Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 15:32
· 57 commits to main since this release

minimalizer lists the shared libraries a Linux binary needs and prints
the COPY --from statements that bring them into a FROM scratch image.
The statements are safe for kaniko: every library is resolved to the real
file behind its symlinks and copied to the path the dynamic loader
expects, so the image needs no symlinks at all.

The archives hold the binary for linux on amd64, arm64 and armv7, and the
same binary is published as the multi-arch image
ghcr.io/inful/minimalizer:v0.1.0.

The tool has to run inside the build stage that holds the binaries, and
it only runs on Linux. See the README for the details.

Changelog

Features

  • d3dbeb1 feat(package): a default tree, and the binaries keep their own path
  • 890607b feat(package): put the binary in the tree and allow more than one binary
  • baff217 feat(release): publish the container image to ghcr.io
  • c5e612b feat: add minimalizer, which lists the shared libraries a binary needs

Bug Fixes

  • c26f7d4 fix(lint): check the error from os.Chdir in the linux-only test
  • f2313b1 fix(package): one statement for the whole tree, so one Dockerfile builds every platform
  • 66a8bd6 fix(test): do not assume the test binary is static
  • a4790dc fix: refuse paths that break the Dockerfile lines, and fix the rest

Others

  • 2790a3f chore(ci): wire CI to inful/* conventions (lefthooks@v0.5.0, golangci-lint v2)
  • deb511b chore(release): add GoReleaser config for Linux binaries and draft releases
  • edf7fa5 chore(scaffolding): add LICENSE, .gitignore, .golangci.yml, and lefthook config