openSUSE / catatonit

A container init that is so simple it's effectively brain-dead.
GNU General Public License v2.0
188 stars 18 forks source link

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

Open nogweii opened 8 months ago

nogweii commented 8 months ago

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 commented 8 months ago

download & compilation

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