I like this alot.
Daniel Quinn
Canadian software engineer living in Europe.
- 1 Post
- 90 Comments
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•How do you manage you DB in a docker environment?English
2·2 months agoI’ve had a really hard time figuring out how to get cloud native pg working 'cause I couldn’t get longhorn working for disk space.
So instead I went with a separate Raspberry Pi that isn’t part of the cluster to host a single Postgres instance.
It’s inelegant, but has worked for years. Still, I’d rather host a separate pg instance for each project… I just have to figure the above out first.
Daniel Quinn@lemmy.cato
Comic Strips@lemmy.world•A good deed [Nancy - April 28th, 1955]English
84·2 months agoFerengi rule of aquision #285: “No good deed ever goes unpunished”.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•What's your contingency plan for the apocalypse?English
12·2 months ago#Solarpunk!

This feels oddly specific, like there’s a famous map out there with Carter and a rabbit. Anyone know what he’s talking about?
Edit: I found the Wikipedia article about the incident, but no map yet.
This would be much less of a problem if fewer people insisted on bringing their whole living room everywhere they go.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Best way to manage all my services as containers?English
2·2 months agoI’ve used FluxCD in the past and have looked into ArgoCD, but honestly, I’ve not seen any big benefit from either to be honest. I use k8s both at home and at work, and in both cases, we do “imperative” deploys: you run
helm install ...either directly or via the CI and stuff is deployed.So for example at my last job, our GitLab CI just had a section triggered exclusively for merges into
masterthat ranhelm install ...for all three environments. We had threevalues.yamlfiles, one for each environment, and when we wanted to deploy a new version, the process was:- Create a tag for our release version (ie.
1.2.3) and push it to the repo. This would trigger a build and push the resulting image into the container registry. - Push an update to the repo with the new tag set in the appropriate Helm values file. If we wanted to deploy
1.2.3todevelopmentbut not yet tostagingorproduction, then thetag:value in each of the environment files would look like this:
k8s/chart/environments/development.yaml:tag: 1.2.3k8s/chart/environments/staging.yaml:tag: 1.2.2k8s/chart/environments/production.yaml:tag: 1.2.2
Once that change is pushed, the CI will automatically apply it with
helm install ...and make sure that all three environments are what they’re supposed to be.As for dependent services, that should all be in your Helm chart so they’re stood up and torn down together. The specific case you mention about “Service A” being dependent on “Service B” but stood up before “Service B” is ready is a classic problem, but easily solved:
The dependent service (“A” in this case) should have an entrypoint that checks for everything else before starting. Here’s what I’m using right now in a project:
#!/bin/sh while ! nc -z "${POSTGRES_HOST}" 5432; do echo "Waiting for postgres..." sleep 0.1 done echo "PostgreSQL started" touch /tmp/ready exec "$@"I’ve even got some code that checks that all the Django migrations have run first for the same situation. The Kubernetes philosophy is that any container should be able to die at any time and be eventually be brought back up and that every container needs to be prepared for this. Typically this means that your containers should operate on the basis of “if I can’t work, die, and hope the problem is solved by the time Kubernetes redeploys me”.
- Create a tag for our release version (ie.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Best way to manage all my services as containers?English
62·3 months agoKubernetes. For a homelab, the stripped-down k3s is fantastic and surprisingly easy to get going.
Once you’ve got Kubernetes set up, you can lean on all the many tools already out there for things like deploying complex projects (Helm) and monitoring (Prometheus/Grafana). OpenLens is a nice piece of software you can use to monitor and control your cluster too, as is k9s.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•NutriTrace: self-hosted nutrition and wellness tracker (AGPL, single Docker container)English
181·3 months agoAs this is a new project, have you considered hosting your code somewhere other than GitHub? Codeberg and GitLab are similarly user-friendly platforms without the many downsides of supporting Microsoft.
A platform that’s down 10% of the time and that now has a reputation of locking people out of their accounts without reason for weeks at a time cannot, under any definition of the word, be considered “stable”.
I just… don’t get it. This whole community, we’re supposed to be building stuff for ourselves and each other, and for some reason people keep going to bat for a company that demonstrably holds every one of us in contempt.
Just… stop using their shitty tools already.
Why hasn’t he migrated to something more stable?
The following don’t seem to fit any of these (and they’re all excellent):
- Radiolab
- Savage Love
- Throughline
- Climate Denier’s Playbook
- The Urbanist Agenda
- CBC Embedded
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•[METAPOST] Please stop linking OpenSlopwareEnglish
102·5 months agoI’d never heard of this list, so thanks for sharing. I have to say while some of the projects seem to have been included due to minor offences, I’m really disappointed in some of my favourite FOSS projects.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•What's the best Open-Source selfhostable Notion replacement?English
33·5 months agoI didn’t understand what you meant by Joplin not being “fully FOSS”, so I went looking for the license. Is really quite strange. Basically they’ve used a “personal license” for some parts and the AGPL for the rest. That’s… annoying.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Simple inexpensive cloud backup?English
23·5 months agoBuy two 4tb extern drives. Copy your photos onto both. Leave on at your mom’s house in a closet. Leave the other in a locker at work or a safety deposit box.
No monthly fees, no techbro cloud capitalists.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•How do you effectively backup your high capacity (20+ TB) local NAS?English
5·5 months agoHonestly, I’d buy 6 external 20tb drives and make 2 copies of your data on it (3 drives each) and then leave them somewhere-safe-but-not-at-home. If you have friends or family able to store them, that’d do, but also a safety deposit box is good.
If you want to make frequent updates to your backups, you could patch them into a Raspberry Pi and put it on Tailscale, then just rsync changes every regularly. Of course means that wherever youre storing the backup needs room for such a setup.
I often wonder why there isn’t a sort of collective backup sharing thing going on amongst self hosters. A sort of “I’ll host your backups if you host mine” sort of thing. Better than paying a cloud provider at any rate.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Mattermost is no longer Open-SourceEnglish
106·6 months agoFrom a read of that issue, it looks like it never was.
That was great. This is why I subscribe here.