From a4174acbd3fb4598fee8a2ec6c822fd2161a4a00f24572d4b03878bd492b6b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 26 Jun 2024 13:58:48 +0000 Subject: [PATCH] [info=60eb6a2f6d17cd8c23229c88744726f7] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/micro-image?expand=0&rev=132 --- README.md | 38 +++++++++++++++++++++++++++++++------- micro-image.changes | 5 +++++ 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6280e05..6969fab 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,37 @@ ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) ## Description -This image is similar to Minimal but without the RPM package manager. -The primary use case for the image is deploying static binaries produced -externally or during multi-stage builds. As there is no straightforward -way to install additional dependencies inside the container image, -we recommend deploying a project using the Minimal image only -when the final build artifact bundles all dependencies and has no -external runtime requirements (like Python or Ruby). + +The `bci-micro` image includes the RPM database, but not the RPM package +manager. This means that the image is smaller than `bci-minimal`. The primary +use case for the image is deploying static binaries produced externally or +during multi-stage builds. + + +## Usage + +As there is no straightforward way to install additional +dependencies inside the container image, we recommend deploying a project +using the `bci-micro` image only when the final build artifact bundles all +dependencies and needs no further installation of packages. + +Example using a Go application: + +```Dockerfile +FROM registry.suse.com/bci/golang:stable as build + +WORKDIR /app + +RUN go install github.com/go-training/helloworld@latest + +# Create an image to bundle the app +FROM registry.suse.com/bci/bci-micro:latest + +COPY --from=build /go/bin/helloworld /usr/local/bin/helloworld + +CMD ["/usr/local/bin/helloworld"] +``` + ## Licensing diff --git a/micro-image.changes b/micro-image.changes index 76f1731..a8d103f 100644 --- a/micro-image.changes +++ b/micro-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 26 13:56:49 UTC 2024 - Dirk Mueller + +- README fixes + ------------------------------------------------------------------- Mon Jun 10 15:11:25 UTC 2024 - Dirk Mueller