News for hackers. Stuff that matters.
Re:An open-source alternative to QuickBooks by basilgohar on Monday May 29, 2023 @11:51PM (#36120944)
I am really happy to see something like this. This is not a criticism of the project. Rather, I lament that more-and-more web-based projects document only a Docker-centered install process for self-hosting as opposed to the process of installing from source. This goes strongly against the spirit of self-hosting where you know what you're running and you see the steps and all the integrations that are needed, including any reliance on third-party services that may come back to bite you.

I feel like Docker-based installs are closer to binary, closed-source installs than they are to open-source, compile-or-build-from-source ones in how much they hide how the program works and limits where and how you can run the application. I'd love to hear points for against this, because I think this may also just be me yelling at a cloud like an old man now a days.

Edited for clarity.

Re:An open-source alternative to QuickBooks by epgui on Tuesday May 30, 2023 @12:42AM (#36121208)
> This goes strongly against the spirit of self-hosting where you know what you're running and you see the steps and all the integrations that are needed, including any reliance on third-party services that may come back to bite you.

Dockerized apps are typically just as transparent, so that's a bit of a non-argument IMO.

Their main advantages are portability, reproducibility, and security.

Re:An open-source alternative to QuickBooks by theK on Tuesday May 30, 2023 @12:57AM (#36121267)
This depends on whether the Dockerfile is available somewhere right?
[dead]
Re:An open-source alternative to QuickBooks by theK on Tuesday May 30, 2023 @05:02AM (#36122668)
I was certain there where ways to reconstruct the Dockerfile but wasn't aware that tools like this existed. Thanks for the link!
Re:An open-source alternative to QuickBooks by epgui on Tuesday May 30, 2023 @02:15AM (#36121675)
I don't think so, and (honest question) isn't a dockerfile always available somehow from somewhere?
Re:An open-source alternative to QuickBooks by evilduck on Tuesday May 30, 2023 @02:26PM (#36128562)
Yeah but it doesn't mean they're useful as non-Docker build steps for reproducing an image.

For example: https://hub.docker.com/layers/library/mysql/latest/images/sh...

"ADD file:e15c235506d8dd134e69d458a7c0afefef1522e9d0cfb28e3538760ddf032785" isn't much help in installing MySQL on a bare metal server.

It's also not something commonly done (I've never seen a project do it), but you can also just push around a very simple base image like a plain Debian image and then move around an image's runtime filesystem through `docker export` as .tar.gz which could have been crafted by someone who started an interactive shell session and just manually performed some install steps without recording what was being done. It's still technically a containerized system but it does obscure or omit a lot of the value proposition.

Re:An open-source alternative to QuickBooks by predictabl3 on Tuesday May 30, 2023 @11:18PM (#36134110)
Not to mention accordingly to highly scientific calculations "damn near" every Dockerfile runs `apt-get update` as a first step, so the, you know, core valuation is questionable from the outset.
Re:An open-source alternative to QuickBooks by epgui on Wednesday May 31, 2023 @04:18AM (#36135828)
There is value in making things "more reproducible" even if you don't achieve "total reproducibility". Even just having a basic layer of extra isolation from the host system (even when updating everything at will without pinned versions) can be enough to motivate the tool's usage. There are varying degrees of reasonable pragmatism in different situations. Heck some people even decide not to use containers at all, and some of those even have well-motivated reasons for this choice!

(And will this stuff even still run on chips 10-20 years from now anyway? Is there maybe a practical limit to reproducibility?)

Re:An open-source alternative to QuickBooks by predictabl3 on Wednesday May 31, 2023 @11:19AM (#36139365)
>And will this stuff even still run on chips 10-20 years from now anyway?

NixOS Con Paris had a talk running a decade+ old version of Firefox, complete with Flash.

Re:An open-source alternative to QuickBooks by evilduck on Wednesday May 31, 2023 @10:06AM (#36138587)
True, but bare metal systems also receive those updates on a regular basis, and containers need security updates too. Unless you're willing to throw it all out and use NixOS you're not going to solve that problem. And if you do, you're opting into far more work since you've just thrown out every standard package management solution and install or setup instructions you were previously relying on and you've just became a pain in the ass to your coworkers and ops teams who haven't drank that koolaid with you.

Personally, I've never once ran into an issue where updating Debian packages in a Docker image impacted my daily life. I'm sure there's some anecdotes and greater than zero potential for it but it just doesn't seem like a major issue anywhere. Docker and Dockerfiles are a practical and low-friction means of getting install steps documented and it's generally a step up over what is normally done. I'm not going to let perfect be the enemy of good and will gladly deal with a Dockerfile that updates its packages first over a markdown file that does nothing.

Re:An open-source alternative to QuickBooks by predictabl3 on Wednesday May 31, 2023 @11:19AM (#36139357)
>Unless you're willing to throw it all out and use NixOS you're not going to solve that problem.

Well, I have been running NixOS systems for nearly a decade, and now have it deployed across 3 cpu archs in 3 continents. :) Tailscale also uses NixOS in prod, etc.

Not to mention, NixOS means: no docker hub/repo, all you need is a dumb blob store, no container signing, no complicated tooling for BOM or source provination, or tooling for version dep analysis. Much of the entire Golang/K8s devops-startup-chasing/adjacent ecosystem is obliviated by first-order Nix features. You don't have to think about container bloat, or container optimization, storage on nodes is cheaper; it's really hard to name an area that isn't strictly better other than "yes, you have to learn more than running an imperative bash script and capturing the tar filesystem". But, maybe there's good reasons for that. I've personally also sheparded probably half a dozen or more users into full-time contributors, so I know it's not impossible.

When Tvix hits with their NAR alternative, a number of other benefits are just going to start appearing for Nix users that try to adopt it. Much, much faster path downloads, significantly more on-disk de-duplication "for free", much better options for potential P2P replication, etc.

Re:An open-source alternative to QuickBooks by user61129028 on Tuesday May 30, 2023 @12:14AM (#36121050)
> This goes strongly against the spirit of self-hosting where you know what you're running and you see the steps and all the integrations that are needed, including any reliance on third-party services that may come back to bite you.

No it doesn't. Just read the Dockerfile, it's self documenting and contains all the build steps.

Re:An open-source alternative to QuickBooks by epgui on Tuesday May 30, 2023 @12:43AM (#36121211)
^ This
Re:An open-source alternative to QuickBooks by diordiderot on Tuesday May 30, 2023 @05:11AM (#36122725)
Or to put it nicely.

If you don't want to run docker you can read the Dockerfile as it will contain all of the build step. Then you can enter everything yourself manually.

Re:An open-source alternative to QuickBooks by evilduck on Tuesday May 30, 2023 @02:23PM (#36128531)
Most of the time a Dockerfile is a very useful living installation reference documentation, but it's not guaranteed. It's entirely possible to encounter a Dockerfile that's just copying in binaries built outside of Docker or was a published image capture of hand installed stuff that is just being referenced in downstream images.
Re:An open-source alternative to QuickBooks by psnehanshu on Tuesday May 30, 2023 @01:26AM (#36121409)
I disagree with your argument, but I won't reply to that as there are other replies I agree with.

However, where did you find the steps to install this with Docker? I can't find it.

Re:An open-source alternative to QuickBooks by vineyardmike on Tuesday May 30, 2023 @04:14AM (#36122351)
https://docs.bigcapital.ly/docs/deployment/docker

There is a docker-compose file at the root of the repository, which gets you most of the way there. But the above link will undoubtably be more helpful.

Re:An open-source alternative to QuickBooks by paulnpace on Tuesday May 30, 2023 @07:15AM (#36123485)
I think it goes against the spirit of FOSS, as docker is all but a proprietary Linux format, and definitely not POSIX(-ish) compliant.

As I prefer using OpenBSD for self-hosting (and I speculate that if more self-hosters learned OpenBSD, they likely would also prefer it), I am acutely aware of not only how Docker has gradually taken over nearly all new FOSS projects, but also how many people involved in FOSS projects generally assume GNU / Linux as a prerequisite to all FOSS projects.