Repository navigation
Releases
v0.2.3
minimalizer lists the shared libraries a Linux binary needs and prints
the COPY --from statements that bring them into a FROM scratch image.
Every library is resolved to the real file behind its symlinks and copied
to the path the dynamic loader expects, so the image holds regular files
at the paths the loader looks for. No builder has to follow a symlink.
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:0.2.3.
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
Bug Fixes
v0.2.2
minimalizer lists the shared libraries a Linux binary needs and prints
the COPY --from statements that bring them into a FROM scratch image.
Every library is resolved to the real file behind its symlinks and copied
to the path the dynamic loader expects, so the image holds regular files
at the paths the loader looks for. No builder has to follow a symlink.
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:0.2.2.
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
Bug Fixes
- f6025df fix(cli): the message for a missing binary names both cases
v0.2.1
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:0.2.1.
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
Bug Fixes
- 31ff6a0 fix(cli): the old --package FOLDER BINARY form is caught in any order
v0.2.0
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:0.2.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
- 3a0e588 feat(cli): a pattern in the command line selects the binaries
Bug Fixes
- 99b1e49 fix(cli): the pattern handles the files it names
v0.1.4
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:0.1.4.
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
Bug Fixes
v0.1.3
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:0.1.3.
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
Bug Fixes
v0.1.2
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:0.1.2.
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
- b2b3a3d feat(docker): the image of the repository can be run too
Bug Fixes
- 2304ead fix(ci): build the image that the release publishes
- 504d07a fix(deps): a library in a folder with a space is refused, not a parse error
- 05ce5ac fix(deps): a line the tool does not understand is an error, not a lost library
- 44a4b1f fix(deps): a path with a space is refused only where it reaches a Dockerfile line
- 400fed7 fix(deps): the warning says why the library needs the cache
- 8be1744 fix(release): the latest tag moves when the release is published
v0.1.1
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:0.1.1.
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
- ec801aa feat(docker): the released image can be run, not only copied from
Bug Fixes
- fe62822 fix(ci): check the release config and build the image the tool describes
- 6c5bad6 fix(ci): no Go cache in the release workflow either
- 8a0f2bb fix(ci): the tidy check has to see a new go.sum, and the e2e uses the default tree
- 3f52707 fix(ci): turn the Go cache off, it is on by default
- 2cd5120 fix(cli): refuse a stage name Docker cannot use, and stop blaming the flag
- b28fd71 fix(deps): a runpath does not cover the libraries of a library
- 63d029e fix(deps): say that the stage has no loader for the architecture
- d71560c fix(deps): take the loader that matches the machine of the library
- 56ae779 fix(deps): the test must ask for a machine that has no loader
- cef934c fix(packaging): delete the leftovers of a killed run in every folder
- 611e153 fix(packaging): never overwrite the marker file next to the tree
- f1aa56a fix(packaging): refusing a foreign folder must not walk the whole machine
- 6d0d3c6 fix(release): the release header belongs under release, not changelog
- 30a9c1f fix(release): the release notes must name the image tag that exists
v0.1.0
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