Run docker-compose with help from Nix/NixOS
638c4b8e55
One could declare it, but it was unceremoniously ignored. A "localhost/" image was created with pretty much nothing in it and it couldn't be launched. The cause was services.<name>.service.image being always set and subsequently thugs services.<name>.image.nixBuild being truthy. That would build an image and write the services.<name>.image field in the docker-compose.json. It leads to the build.context being ignored and the service failing. This was solved by only writing services.<name>.service.image when services.<name>.service.build.context is not set. services.<name>.image.nixBuild is additionally set to false when the context is set. Related to #208 |
||
---|---|---|
docs | ||
examples | ||
nix | ||
src | ||
tests | ||
.envrc | ||
.gitignore | ||
antora-playbook.yml | ||
arion-compose.cabal | ||
bors.toml | ||
build | ||
cabal.project | ||
CHANGELOG.md | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
HACKING.md | ||
LICENSE | ||
live-unit-tests | ||
nixos-module.nix | ||
README.asciidoc | ||
repl | ||
run-arion | ||
run-arion-quick | ||
run-arion-via-nix | ||
Setup.hs | ||
shell.nix |
Arion is a tool for building and running applications that consist of multiple docker containers using NixOS modules. It has special support for docker images that are built with Nix, for a smooth development experience and improved performance. # https://docs.hercules-ci.com/arion/[Intro and Documentation]