Accepting request 1183461 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS OBS-URL: https://build.opensuse.org/request/show/1183461 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micro-image?expand=0&rev=18
This commit is contained in:
commit
b204699cdf
38
README.md
38
README.md
@ -2,13 +2,37 @@
|
|||||||
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
|
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
|
||||||
|
|
||||||
## Description
|
## 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
|
The `bci-micro` image includes the RPM database, but not the RPM package
|
||||||
externally or during multi-stage builds. As there is no straightforward
|
manager. This means that the image is smaller than `bci-minimal`. The primary
|
||||||
way to install additional dependencies inside the container image,
|
use case for the image is deploying static binaries produced externally or
|
||||||
we recommend deploying a project using the Minimal image only
|
during multi-stage builds.
|
||||||
when the final build artifact bundles all dependencies and has no
|
|
||||||
external runtime requirements (like Python or Ruby).
|
|
||||||
|
## 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
|
## Licensing
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 26 13:56:49 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- README fixes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 10 15:11:25 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
Mon Jun 10 15:11:25 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user