-
Notifications
You must be signed in to change notification settings - Fork 33
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
If I want to compile something to run on flatcar, what is the most appropriate linux environment to do so? #1063
Comments
It's kind of concealed in the documentation, but the relevant section is here: https://www.flatcar.org/docs/latest/reference/developer-guides/kernel-modules/#prepare-a-flatcar-container-linux-development-container. May I ask what you're looking to compile? Keep in mind that you need to package up all deps, and will have to rebuilt your programs with every flatcar release. |
Sure. I have to warn you, what I'm doing is "wrong." And I know it. It is not your intended use. I haven't decided whether or not I'm super dumb, or just sort of dumb. So I have a self-project I've been working on for a few years. Each computer will run just one process. I could have one more expensive computer, with a bunch of dockers, I suppose. But for now, I'm choosing to use the super cheap $2.50 computers, that way I can easily adjust without worrying about one docker taking cpu/mem resources from another, etc. I figure Vultr will be much better at doing this than I would. Each super cheap $2.50 computer (512mb), with flatcar, no docker, has about 100mb spare. Vultr does not have Alpine, nor does it have Almalinux-minimal. So, that's my use case. My use case is sort of opposite of what you're doing I suppose. |
BTW, if you see a much more obvious and clear option for me to try, feel free to suggest. I'm not a sys-admin, and will take any advice!! |
Using containers makes it simple to, well, contain the dependencies and build and run independently on every environment. We also plan to make it easier to build systemd-sysext images that can extend /usr or /opt (first case would be dynamic linking and dependend on the OS version, second would be self-contained and independent from the OS version). |
Yeah, maybe I can use Alpine inside or something. Unfortunately it is not a trivial replacement between Alpine and redhat-based/ubuntu-based. Flatcar linux is closer to my normal build environment than Alpine. I have a couple questions, but maybe they are too off-topic.
So that if the hosting flatcar updated, and changed something I'm not aware even exists, the dockered-flatcar would remain viable? (but the memory use by docker would stay ultra low)
|
Hey @jepio thank you very much for the link to the dev. I'll paste into here what I'm doing for a dockerfile (for anybody searching).
Also, as with every different linux installation, there was a new compile issue. With flatcar, somehow minizip doesn't compile without a patch of essentially |
@timprepscius We've made progress on generating systemd-sysext images. If you're interested please have a look at this commit in the scripts repo: flatcar/scripts@eb2f3d5 and the associated PR. |
Thanks for the question. |
Greetings, this is neither a bug, issue, enhancement, etc. I'm not exactly sure where to ask actually.
I would like to compile a program to run on a flatcar instance, but not inside a docker.
I've been looking if there is some sort of
docker run --rm -it flatcar/dev-env /bin/bash
Out there, but can't find it.
What is the nearest/best environment to use to compile for flatcar?
What do you use?
Thanks!
-tim
The text was updated successfully, but these errors were encountered: