!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
9 Feb 2024
@pgibson:matrix.orgpgibson It produces a result symlink to the actual image, which you can podman load -i result 01:56:15
@treed:zenithia.nettreed If you include that flake as in input (and then include it in the arguments to outputs, then you should be able to reference as like someDockerImage.dockerImages.site1 01:56:37
@treed:zenithia.nettreedAlthough I'm not sure how to get that into podman declaratively01:57:27
@pgibson:matrix.orgpgibsonOkay thanks I'll give it a go - appreciate your help01:57:49
@treed:zenithia.nettreedLooks like you might be able to use a bit like in https://nixos.wiki/wiki/Podman01:58:08
@treed:zenithia.nettreed but instead of image = whatever, you'd want imageFile = dockerImages.site1 01:58:36
@treed:zenithia.nettreed I think that might do it 01:58:48
@pgibson:matrix.orgpgibsonI think I recall seeing other people pushing the images to the Docker registry so they could then use the registry url in the Podman service, but hoping to avoid that if possible01:58:52
@treed:zenithia.nettreed Depending on exactly how podman load works I guess 01:59:14
@treed:zenithia.nettreedBut it's certainly where I'd start01:59:28
@pgibson:matrix.orgpgibson Yeah that's working, thanks again treed . You still need to specify image = "the-actual-image-name" as well as imageFile = someDockerImage.dockerImages.site1 02:54:54
@treed:zenithia.nettreedOh, interesting.02:55:14
@treed:zenithia.nettreedGlad to help!02:55:45
@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

Show newer messages


Back to Room ListRoom Version: 6