Skip to content

feat(docker): add dockerfile#36

Open
reneleonhardt wants to merge 1 commit intoopenSUSE:mainfrom
reneleonhardt:feat/add-dockerfile
Open

feat(docker): add dockerfile#36
reneleonhardt wants to merge 1 commit intoopenSUSE:mainfrom
reneleonhardt:feat/add-dockerfile

Conversation

@reneleonhardt
Copy link
Copy Markdown

Features

  • Add multi-platform Dockerfile
  • Image is used as a store for maximum convenience
COPY --from=opensuse/catatonit --chown=65534 /catatonit /

Missing

  • GitHub workflow to build the multi-platform image and publish it

Fixes #30

@tacerus
Copy link
Copy Markdown
Member

tacerus commented May 26, 2025

Shouldn't an openSUSE project ship with an openSUSE based container? I also think ideally this would be built in OBS and offered as an official image via registry.opensuse.org.

@reneleonhardt
Copy link
Copy Markdown
Author

It's just a working example after I saw the open feature request.
It's not published anywhere, you could just merge and change it for example.

@ChristianCiach
Copy link
Copy Markdown

ChristianCiach commented Jun 3, 2025

Shouldn't an openSUSE project ship with an openSUSE based container?

The image seems to be designed to be used as part of a docker multistage build to COPY the static binary out of this image into your own image. It does not seem to be designed to be used as a base image, so adding any OS base layer (openSUSE or anything else) would just add unnecessary bloat that nobody needs. Also, the image would need to be regularly updated to not flag vulnerability scanners.

For these reasons, I strongly prefer this image to be based on scratch (aka no base at all). This is exactly what I'm currently looking for.

@tacerus You probably saw the FROM alpine in the first line of the Dockerfile and immediately assumed that the final image would be based on Alpine. This is not the case. The PR author only uses Alpine to build the static binary. This could be OpenSUSE for all I care. The real base of the final image is FROM scratch further below in the Dockerfile.

@reneleonhardt reneleonhardt force-pushed the feat/add-dockerfile branch from 9d34f0a to b9df6c7 Compare June 3, 2025 09:24
@ChristianCiach
Copy link
Copy Markdown

ChristianCiach commented Jun 3, 2025

@tacerus Assuming this PR would be accepted, would you consider accepting a follow-up PR to publish the image (only containing the static binary and nothing else) to ghcr.io of this github project? This would effectively just be an additional Github release, but as an image.

@tacerus
Copy link
Copy Markdown
Member

tacerus commented Jun 3, 2025

I'm not a maintainer of this repository, I don't have any power to accept or decline your proposals, sorry. :)

Fixes openSUSE#30 (only GH workflow is missing)

Signed-off-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com>
@reneleonhardt reneleonhardt force-pushed the feat/add-dockerfile branch from b9df6c7 to 7f54f15 Compare June 3, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish a container with catatonit in it for ease of copying into other containers?

3 participants