Live data from Hacker News

Immutable Software Deploys Using ZFS Jails on FreeBSD

conradresearch.com

1–10 of 54 posts

Re: Immutable Software Deploys Using ZFS Jails on FreeBSD

#4
post #2

Isn't this just docker with extra steps?

No.

ZFS has been stable in FreeBSD for something like 17 years, and FreeBSD jails have been around for something like 25 years.

By the time Docker hit 1.0 (about 11 years ago), the use of snapshots and jails had already been normal parts of life in the FreeBSD space for over half of a decade.

Re: Immutable Software Deploys Using ZFS Jails on FreeBSD

#8
post #4
post #2

Isn't this just docker with extra steps?

No. ZFS has been stable in FreeBSD for something like 17 years, and FreeBSD jails have been around for something like 25 years. By the time Docker hit 1.0 (about 11 years ago), the use of snapshots and jails had already been normal parts of life in the FreeBSD space for over half of a decade.

I never find arguments like this compelling (but I agree with your sentiment). I don’t much care to fire up the time machine to go back 12 or more years to develop software today. If your argument is that ZFS and jails provide the same functionality but are more stable than Docker. But as is it comes off as “get off my lawn you young whipper snappers”.

But at the same time, the reason Docker won was not because it was groundbreaking tech or because it was amazingly well tested or anything. Just as one example, it has a years old bug which actively gets more comments every week having to do with Docker grossly mishandling quotes in env files.

No, the reason it won is because the development experience and the deploy experience is easy, especially when you are on Linux AND on macOS. I can’t run FreeBSD jails or ZFS on macOS, can I? Definitely not with one file and one command.

Jails and ZFS are amazing tech but they are not accessible. Docker made simple things very simple while being cross-platform enough. Do I feel gross using it? Yeah. It’s a kludgy solution to the problem. But it gets the job done and is supported by every provider out there. I am excited that it is being ported to FreeBSD though I know it will be a very long process.

Re: Immutable Software Deploys Using ZFS Jails on FreeBSD

#9
The ezjail[0] port is another option for achieving the article's stated goal:

  FreeBSD's native support for ZFS snapshots and jails 
  provides a powerful foundation for immutable deployments. 
I have not used the article's tool(s) and am not comparing the functionality provided by each. I have used ezjail[0] and found it exceptionally useful for similar concerns.

0 - https://erdgeist.org/arts/software/ezjail/

Re: Immutable Software Deploys Using ZFS Jails on FreeBSD

#10
I built a reverse proxy server for this kind of usecase specifically. I have a chroot launcher with a simple config file and the reverse proxy is auto configured over RPC and automatically acts as a CA root so internal communication is HTTPS. You can also set the API key as an env var and just run your binary on the command line for testing and it will auto configure and be available on your URL with https.

https://github.com/fsmv/daemon/

It's a bad time for me to be mentioning it because I have a major update that's not quite ready to release that changes some client APIs and makes the whole thing much nicer with fully automatic lets encrypt. I haven't had the space to work on it for a while unfortunately.

Post reply on HN