hercules-ci / arion

Run docker-compose with help from Nix/NixOS
Apache License 2.0
622 stars 48 forks source link

Question: how to get/change input image ( #229

Open tennox opened 7 months ago

tennox commented 7 months ago

Hi there 🙂 (also sent an email, but then felt this might be a more appropriate way)

I want to build a dockerization that both works in a docker-compose way, but also needs to run on Cloudron (i.e. all-in-one docker image with supervisor). I was hoping to be able to use arion for part of it, and managed to build a basic PoC with arion that runs the compose setup: https://gitlab.com/wovin/deploy/ipfs/-/merge_requests/5

Now one question I have is how can I get the image that arion generates as a nix reference (e.g. flake output)? Or maybe simpler way: use a dockerTools.buildLayeredImage as an image for arion compose?

Or do you have any other tips for this (grantedly a bit insane) endavour? 😅

Greetings, ~Manu 😉

tennox commented 7 months ago

Also, might it be a good idea to run kubo using this experimental nixos module thingy? https://github.com/hercules-ci/arion/blob/f295eabd25b7c894ab405be784e2a010f83fde55/examples/nixos-unit/arion-compose.nix