!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

296 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena101 Servers

Load older messages


SenderMessageTime
9 Feb 2024
@pgibson:matrix.orgpgibson And not sure what happens if image = doesn't match - maybe it will run a separate image pulled from docker hub instead 02:56:07
@treed:zenithia.nettreedDo oci images have a notion of a name internally?03:00:09
@treed:zenithia.nettreedoh yes you're right03:00:30
@treed:zenithia.nettreed
        The `image` attribute must match the name and
        tag of the image contained in this file, as they will be used to
        run the container with that image. If they do not match, the
        image will be pulled from the registry as usual.
03:00:37
@treed:zenithia.nettreeduhhh not sure what happened there03:00:43
@pgibson:matrix.orgpgibson If you prefix the image name with localhost it will prevent it from downloading a new image, eg image = "localhost/hello-world"; fails rather than downloading the hello-world docker hub image 03:12:48
@pgibson:matrix.orgpgibsonSo that seems like a good measure03:13:51
@pgibson:matrix.orgpgibson I've got a problem with colmena build caching the old version of the flake that builds the dockerImage after making changes to it 03:32:49
@pgibson:matrix.orgpgibsonIs this due to the flake.lock?03:33:34
@pgibson:matrix.orgpgibsonIf I delete the lock file then it picks up the changes03:40:41
@pgibson:matrix.orgpgibsonIs there something like --upgrade?03:40:48
@pgibson:matrix.orgpgibson

Is this the correct way to import a flake from a subdir? ```
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
dockerSshTunnel.url = "path:./docker-ssh-tunnel";
};

03:44:30
@pgibson:matrix.orgpgibson *

Is this the correct way to import a flake from a subdir?

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
dockerSshTunnel.url = "path:./docker-ssh-tunnel";
};
03:44:43
@pgibson:matrix.orgpgibson Or should I be using imports = [...] 03:51:11
@treed:zenithia.nettreed If you want to update an input, it's nix flake lock --update-input $input-name 23:24:22
@treed:zenithia.nettreedThat'll update to the latest version23:24:32
@treed:zenithia.nettreed And I have no experience with local flakes, other than knowing that . is a reference to the local flake. So maybe just ./docker-ssh-tunnel 23:25:18
@treed:zenithia.nettreedAlthough if it's working with the path prefix, then that's probably also fine23:25:30
@treed:zenithia.nettreed * And I have no experience with local flakes, other than knowing that . is a reference to the local directory's flake. So maybe just ./docker-ssh-tunnel 23:28:22
@treed:zenithia.nettreed * And I have no experience with local flakes, other than knowing that . is a reference to the current directory's flake. So maybe just ./docker-ssh-tunnel 23:28:30
@pgibson:matrix.orgpgibsonAppears to use the name that you import it under in your outer flake inputs23:28:35
@treed:zenithia.nettreed yeah, the name should be as listed in the inputs so dockerSshTunnel in your case 23:29:03
@pgibson:matrix.orgpgibsonSteep learning curve, but being able to define a server with containers running as a service in a hundred LoC is pretty awesome23:31:23
@treed:zenithia.nettreedYeah, my homelab has like 25 VMs and it's all from just over 5k LoC23:35:43
@treed:zenithia.nettreedI've done cfengine, puppet, chef, saltstack, ansible. This is by far the smoothest experience, once you figure out what you're doing23:36:04
@treed:zenithia.nettreedI still have to use ansible for the hypervisors (proxmox) and I get agitated every time23:36:24
@pgibson:matrix.orgpgibsonAnsible is just so unreasonably slow23:36:47
@pgibson:matrix.orgpgibsonDrives me crazy23:36:55
@treed:zenithia.nettreedExecution slowness doesn't really bother me. Just writing the stuff is so slow23:37:13
@treed:zenithia.nettreedAll the stuff spread out in multiple files for even the simplest of "deploy this binary, run it as a service" things23:37:35

Show newer messages


Back to Room ListRoom Version: 6