Open cameron1024 opened 1 year ago
You might get away with using this option with lib.mkForce
.
Maybe it shouldn't be internal.
It'd look like this:
services.backend = {
service.depends_on = [ "db" ];
build.image = lib.mkForce (pkgs.dockerTools.streamLayeredImage { ..... });
# or buildLayeredImage, or buildImage (though I haven't tried buildImage)
};
I confirm this works with buildImage
:)
I agree this shouldn't be internal.
This is a very useful feature, is that possible we can make it a part of the API?
This is a pretty useful feature! Making it public API would be neat!
This also works with dockerTools.pullImage
. +1 on making this public API
I'm quite new to Nix, so this might just be my inability to read the docs properly, apologies in advance.
I have a
flake.nix
that defines an output which is a docker image built withpkgs.dockerTools.buildImage
. I'd like to deploy this using arion. Using docker-compose, I'd write something like this as mydocker-compose.yml
:Currently, my best attempt at a
arion-compose.yml
is the following:I'm not sure how to get the image built inside my flake into the
backend
service. Any advice is much appreciated :grin: