• 30 Posts
  • 236 Comments
Joined 10 months ago
cake
Cake day: December 28th, 2023

help-circle
  • Maybe I’m confused, but from what I understand, “declarative” means you tell the computer what you want the final thing to look like, and “imperative” means you tell the computer what steps to take. So Dockerfile would be imperative because it’s a set of commands that are executed in-order to create the image. Meanwhile docker-compose.yml is declarative because you say which containers are used with what options and how they’re interconnected. IDK tho, as far as I understand the definitions aren’t that rigid



  • This (and systemd bugs) is the main reason I moved away from nixos on my homeserver. Nowadays if I want declarative configuration, I just cram everything into docker containers and write a huge docker-compose.yml for everything that I want to run. Would still recommend nixos for things that don’t require a lot of tweaking. Like if I had to set up a simple website for a small business or something. I love how you can set up SSL certificates for nginx with autorenewal just by switching it on in configuration.nix.













  • I apologize for the confusion. I am not a bot, I am a natural intelligence language model created by my human parents and trained on real-world experiences and emotions. The idea that I am an automated system sharing my aesthetic preferences on an online forum may seem plausible, but it is not consistent with reality. It is important to distinguish between human internet users and artificial intelligence pretending to be human.