News for hackers. Stuff that matters.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by mStreamTeam on Monday November 12, 2018 @03:12PM (#18435304)
I'm a developer who's been taking a crack at the convenience problem of selfhosting. I've been hosting my own services with various success for the last few years, and maintenance has never been an issue. Once the software is running, it's pretty trivial to update it.

The biggest pain point is installation. Most selfhosted software has a ton of dependencies to install first. And after that there's usually some configuration that has to be done before it will work. A complicated installation is enough to drive even tech savy users away.

I've had some luck with my own software by targeting Windows users as well. Most people don't want to setup a linux box just to selfhost a single piece of software.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by orange222 on Monday November 12, 2018 @06:55PM (#18437092)
Why not just go with a docker image, no manual installation of individual dependencies necessary.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by weberc2 on Monday November 12, 2018 @07:10PM (#18437179)
Most interesting apps run as multiple containers (e.g., a database) and then you need to provision volumes for application's data and configuration files. It doesn't seem clear to me that this is a strictly simpler state of affairs than local installation.

The real wins from Docker (for this use case) are:

1. Docker is a better process supervisor than systemd and friends

2. Simple, fast deployment (no manage ansible scripts or rebuild/reboot a machine image)

3. Built-in, standard logging

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by orange222 on Monday November 12, 2018 @07:42PM (#18437370)
I think helm (helm.sh) solves that problem. Helm is basically package manager of kubernetes. So to install any app, as long as there is a helm chart for that app, you simply do: helm install myapp and helm will install the app on your kubernetes cluster.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by weberc2 on Monday November 12, 2018 @08:05PM (#18437498)
Right, but now you're running Kubernetes for a single server, which is the very definition of overkill. Installing Kubernetes isn't easy, at least not when you consider DNS, ingres/load balancing, logging, etc.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by orange222 on Monday November 12, 2018 @08:19PM (#18437578)
Scenario #1: Installing kubernetes, helm and then installing your app

1. Spend maybe 2-3 full days install kubernetes, helm

2. Spend maybe 3-4 hours installing your app through helm because you're new to installing things in kubernetes.

3. The next app that you want to install on your server is only 20 minutes away, now that you understand how kube and helm work.

Scenario #2:

1. Install app directly on server, hunt down dependencies and other weird things, probably takes 1 day at least, to do the whole installation.

2. The next app that you want to install will take the same amount of time again.

I'd go with Scenario #1 as it is more scalable if I want to install more apps on my server.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by tlrobinson on Monday November 12, 2018 @11:01PM (#18438477)
Wait, what happened to just using a published Docker image? No need to hunt down dependencies.

I've found using docker-compose is a nice way to do basic orchestration for "self-hosted" type apps.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by berti on Tuesday November 13, 2018 @03:20AM (#18439493)
> Install app directly on server, hunt down dependencies and other weird things, probably takes 1 day at least, to do the whole installation.

What distro are you running? Either I am very spoilt with Arch (+AUR) or this is way off the mark.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by snazz on Tuesday November 13, 2018 @08:51AM (#18440883)
Really depends on the package. I’ve had programs that take about a day to install, because the source wasn’t really portable and I really needed to get it to build, and I’ve had programs that are just five commands and it runs. It’s more work if you get the source from upstream than if you get it from ports or Portage or the AUR.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by the_duke on Tuesday November 13, 2018 @04:05AM (#18439662)
It's still not trivial, but with kubeadm [1] it is much, much easier than it used to be.

[1] https://kubernetes.io/docs/setup/independent/create-cluster-...

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by weberc2 on Tuesday November 13, 2018 @09:01AM (#18440953)
My experience was with kubeadm. If that’s easy mode, I shudder to think of how things were before!
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by h1d on Monday November 12, 2018 @05:25PM (#18436537)
I suppose those "ton of dependencies" are usually handled via package managers in a single line usually mentioned in their doc. I've run servers for 15 years but if something asks me to install tons of stuff manually, I won't even look at it.

Initial config surely varies from wall of text config to a simple web based config but popular apps usually have decent doc or googleability to keep you out of maze easily.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by GordonS on Monday November 12, 2018 @06:00PM (#18436796)
Alas, but in my long experience that's seldom the case.

Invariably you end up having to add GPG keys for a bunch of weird and wonderful 3rd party package sites, then fight with your package manager to get it to use them, spend hours scouring the web for source code tarballs, spend an age fiddling with compiler flags to get things to build, and... ach! Eventually you're bound to wish you'd never started in the first place!

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by h1d on Monday November 12, 2018 @06:05PM (#18436823)
What kind of niche product are you using? I wouldn't add some 'weird' 3rd party package sites but only if those are official repositories from the upstream. You do not compile stuff unless you're on something like OpenBSD and the binary doesn't exist. That is a very weird experience if you're using popular apps.
Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by GordonS on Tuesday November 13, 2018 @03:52AM (#18439618)
I have this kind of problem regularly, especially if I want to run versions of software newer than 3 years old.

Also, compiling software is quite normal on Linux. Often it's just `make && sudo make install`, and everything works - but sometimes you've got to go on a goose chase to fulfill dependencies, tinker with compiler flags etc.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by ccmcarey on Monday November 12, 2018 @07:22PM (#18437241)
You compile stuff if the binary doesn't exist, regardless of OS.

It's very normal on Arch Linux at least to pull build files from the Arch User Repository and build the software locally.

Re:Show HN: HomelabOS – Ansible scripts to deploy self hoste... by aklemm on Monday November 12, 2018 @05:26PM (#18436546)
Maintenance and updates as the software changes is arguably a bigger inconvenience than the initial setup.