Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nogweii opened this issue Mar 5, 2024 · 2 comments

Comments

@nogweii
Copy link

nogweii commented Mar 5, 2024

I'm thinking something like:

FROM opensuse/catatonit:0.2.0 as init
FROM nodejs

ADD package.json /app
# ... blah blah blah

COPY --from=init /catatonit /catatonit
ENTRYPOINT ["/catatonit"]
CMD ["node", "app.js"]

That way it's readily available as a compiled static binary for use in containers without having to manage the download & compilation myself. I could make part of a multi-stage build do that for me, but I think it would be better to have that done once rather than everyone having to correctly get the right calls to gcc et all.

It would be also very awesome if that pre-made image was compiled for a bunch of different architectures, like arm64.

@tacerus
Copy link
Member

tacerus commented Mar 19, 2024

download & compilation

catatonit is available as a package, you can simply install it using zypper -n in catatonit in your (openSUSE) container build.

@kpcyrd
Copy link

kpcyrd commented Dec 18, 2024

Using zypper may resolve to a different binary in the future, so this would cause reproducible builds issues, even if all FROM lines are pinned resolved and pinned to @sha256:.

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

No branches or pull requests

3 participants