Closed srid closed 1 year ago
Actually, this PR is incomplete.
❯ arion up --profile pgadmin
+ /nix/store/sc37ka525126rcachcl6d7shmfc1j7zd-arion-0.2.0.0/bin/arion --prebuilt-file /nix/store/5xpzb75r3lc3hb0p302izzpwpwyd1z43-docker-compose.yaml up --profile pgadmin
unknown flag: --profile
arion: FatalError {fatalErrorMessage
We should add --profile
to arion: https://docs.docker.com/compose/profiles/#enable-profiles
This docker compose functionality suggests that compose is slowly becoming a configuration language, but we already have one. I think we could leapfrog this feature and use Nix to implement it instead, and perhaps improve configurability from the command line. A fairly tangible benefit of doing this in Nix is that we can take advantage of laziness, so that we don't need to evaluate the images of profiles that aren't enabled.
Yup, that's what I'm going with: https://github.com/nammayatri/nammayatri/pull/648/files
Mirroring https://docs.docker.com/compose/profiles/