News for hackers. Stuff that matters.
Re:Flatcar Container Linux by chubot on Sunday April 09, 2023 @01:21PM (#35504652)
This looks cool, but what's the dev environment like?

I think Ubuntu is a popular base image in Docker because Ubuntu is popular for engineers to use on their desktops

Debian usually passes for Ubuntu, since the package names are mostly the same.

So either you do all your development in containers, or you have drift between the dev environment and the cloud.

Re:Flatcar Container Linux by theodric on Sunday April 09, 2023 @01:33PM (#35504744)
> Debian passes for Ubuntu

Ubuntu passes for Debian, you mean. Debian has been around much, much longer than Ubuntu and set the standards Ubuntu got for free and commercialized.

Re:Flatcar Container Linux by MathMonkeyMan on Sunday April 09, 2023 @01:37PM (#35504778)
True, but devs like me started with Ubuntu. Then years later we see a Debian docker image and wonder how different it will be. Mostly the same, for the reason you mentioned.
Re:Flatcar Container Linux by chubot on Sunday April 09, 2023 @01:48PM (#35504863)
Yes I know, but Ubuntu seems to be more popular as a desktop

What I mean is that people just hack on stuff on their desktop. They install Python NumPy or Rails or whatever. Like gigabytes of dependencies.

And then they want to deploy.

Is it easy to do that with Flatcar Container Linux? How do I do it?

Or is it easier to make a Docker file that does apt-get install X and pip install Y ?

You can do that with Ubuntu as a base image, and Debian usually "just works" if you're on Ubuntu. (I'm doing this with our Debian CI images)

Not saying you should always take the easier path, but I also think it's a good idea to minimize the differences between the dev environment and production

Re:Flatcar Container Linux by vxNsr on Sunday April 09, 2023 @02:05PM (#35505012)
My understanding is that flatcar is for running your docker containers, not necessarily for building them.
Re:Flatcar Container Linux by vidarh on Sunday April 09, 2023 @04:19PM (#35506093)
It's intended for a workflow where you build docker containers, and deploy docker containers, so the environment is identical. If all you deploy is containers, it makes sense for the host OS to be as small as possible, and as immutable as possible.
Re:Flatcar Container Linux by joeatwork on Sunday April 09, 2023 @02:25PM (#35505138)
The intention is to do all of your development in containers, in whatever environment you choose, and then deploy the containers into production on a Flatcar cluster.
Re:Flatcar Container Linux by blixtra on Monday April 10, 2023 @10:18AM (#35512605)
Flatcar is a host OS to run containers. It is not a base OS to build containers.
Re:Flatcar Container Linux by t-lo on Tuesday April 11, 2023 @07:33AM (#35523595)
As Flatcar is a very minimal, immutable distribution to run containers / Kubernetes, our development environment (aka the "Flatcar SDK") is containerised too.

Flatcar releases are tied to git commits in our distro automation repo; so to develop for Flatcar, one would:

1. clone the distro automation repo

2. check out the release version one wants to develop for (tag or branch)

3. starts the SDK container via a wrapper script in the repo

This enables Flatcar development across all distros that run git, and docker or podman (it even works on WSL if one is inclined to use it that way).

More information here: https://www.flatcar.org/docs/latest/reference/developer-guid...