nestybox / sysbox

An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
Apache License 2.0
2.72k stars 151 forks source link

OpenSUSE #718

Open mwaeckerlin opened 1 year ago

mwaeckerlin commented 1 year ago

Building only in a distribution specific Dockerfile is not a good idea, because it excludes all distributions you're not thinking of, e.g.:

ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3284282159/Dockerfile.opensuse-tumbleweed-: no such file or directory

There should be at least an option to build outside of docker!

Please support OpenSUSE.

ctalledo commented 1 year ago

Hi @mwaeckerlin, just so we have more context, what Dockerfile are you referring to please?

Thanks!

mwaeckerlin commented 1 year ago

The one the build system does not find, please check the error message above.

mwaeckerlin commented 1 year ago

It seems like build is done exclusively in a docker environment, and it seems like Dockerfiles are provided, but onnly for a few selected distribuitions / architectures. That's why developers normally use autotools to build stuff, because they don't depend on specific distros.

Currently it's not possible to build for OpenSUSE Tumbleweed.

ctalledo commented 1 year ago

Hi @mwaeckerlin,

Yes the build is done exclusively inside a Docker container (to keep the host clean); however the main reason we have per-distro Dockerfiles is not so much for building, but rather because we also test Sysbox inside the container, and we want the container to mimic the specific distros where Sysbox runs.

Happy to support OpenSUSE of course; if you have the cycles, please help us create the Dockerfile for it and we can check it by running the Sysbox test suite inside that OpenSUSE container.

Thanks.