Commit Graph

79 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
74624745c1 example: use nix var to simplify (consistent with 'port') 2023-06-20 18:08:07 -04:00
Sridhar Ratnakumar
a5bb6e365c example: nixpkgs-fmt 2023-06-20 18:05:17 -04:00
Sridhar Ratnakumar
47afddae52 Don't wrap command in writeShellApplication; fixes #22 2023-06-20 18:00:50 -04:00
Sridhar Ratnakumar
11636ffc4d
readme: Add shell as well 2023-06-19 18:23:22 -04:00
Sridhar Ratnakumar
28bb6fc7b2 readme: Clarify why we deviate from YAML schema 2023-06-19 18:18:29 -04:00
Sridhar Ratnakumar
1483bd7fec readme: link to services-flake 2023-06-19 17:59:09 -04:00
Sridhar Ratnakumar
db8eea803c Remove services (#23)
Moved to https://github.com/juspay/services-flake
2023-06-19 17:57:39 -04:00
Sridhar Ratnakumar
dd1dff0070
Add devenv-like services (starting with postgresql) (#17)
- Add hello service
- Add postgresql service
- Add tests for service
2023-06-19 13:13:25 -04:00
Sridhar Ratnakumar
56f4f01dd4 Run nixpkgs-fmt 2023-06-19 11:03:57 -04:00
Sridhar Ratnakumar
4cadf42101 test: systemd: report if pc exits abrutly 2023-06-19 11:03:57 -04:00
Sridhar Ratnakumar
92a5d0b8ba test: systemd: do not run as root user 2023-06-19 11:03:57 -04:00
Sridhar Ratnakumar
b473a92135 test: Fix systemd service name (to be unique) 2023-06-19 11:03:57 -04:00
Sridhar Ratnakumar
9a2c53b473 example: update inputs 2023-06-16 20:27:02 -04:00
Sridhar Ratnakumar
a108d48136
Update CHANGELOG.md 2023-06-16 20:26:28 -04:00
Ben Levy
5841c100ec Fix definiton of probe.exec
types.submodule defaults to assuming the contents are a config. When using liveness_probe.exec.command you get an error due to the exec submodule not being defined correctly.
2023-06-16 20:25:43 -04:00
Sridhar Ratnakumar
ef453a6ce5
Merge pull request #18 from Platonic-Systems/nixosTest
Add `nixosTest` capability
2023-06-14 15:40:12 -04:00
Sridhar Ratnakumar
345cd83f33 readme: port 2023-06-14 15:38:25 -04:00
Sridhar Ratnakumar
232333f89e readme: how to contribute 2023-06-14 15:37:32 -04:00
Sridhar Ratnakumar
641ae9fa27 test.sh: check for NixOS 2023-06-14 13:58:02 -04:00
Sridhar Ratnakumar
97e7dd23d4 Ignore checks if set to null 2023-06-14 13:08:22 -04:00
Sridhar Ratnakumar
9f5b1e6f22 test: add check only on Linux 2023-06-14 13:04:18 -04:00
Sridhar Ratnakumar
bbc4d756d5 Simplify ExecStart 2023-06-14 12:07:32 -04:00
Sridhar Ratnakumar
7fc9abf8e1 Rename to wait_until; add example 2023-06-14 12:07:25 -04:00
Sridhar Ratnakumar
6d6303a912 Remove ./test (./example has a test now) 2023-06-13 18:13:40 -04:00
Sridhar Ratnakumar
e86d5cb68c example: DRY port 2023-06-13 18:09:10 -04:00
Sridhar Ratnakumar
9b4a7886f7 test: add library, and check example for readiness 2023-06-13 18:01:35 -04:00
Sridhar Ratnakumar
3964517bb9 example: add readiness_probe for sqlite-web 2023-06-13 18:01:11 -04:00
Sridhar Ratnakumar
1fbcf33a9e Reintroduce shell_command; resolves #19
Thus we are no longer dependent on global bash.
2023-06-13 15:18:04 -04:00
Sridhar Ratnakumar
65d7e4d302 example: add nixosTest 2023-06-13 12:45:39 -04:00
Sridhar Ratnakumar
3e6a7e4e0f Add testScript option 2023-06-13 12:45:26 -04:00
Sridhar Ratnakumar
b5e97b110d add changelog 2023-06-12 18:15:09 -04:00
Sridhar Ratnakumar
3744b6bb07 DRY submoduleWithPkgs 2023-06-12 18:14:13 -04:00
Sridhar Ratnakumar
4b117924f4 Run nixpkgs-fmt 2023-06-12 16:41:22 -04:00
Sridhar Ratnakumar
0d8b40edfa
readme: no more apps 2023-06-09 17:55:52 -04:00
Sridhar Ratnakumar
c206414e7d Remove 'shell' submodule (meaningless) 2023-06-09 17:33:59 -04:00
Sridhar Ratnakumar
06697488d3 Obviate writeShellApplication in 'command' 2023-06-09 17:31:59 -04:00
Sridhar Ratnakumar
e46b51dc23
Merge pull request #16 from Platonic-Systems/submodule
Add submodule type for YAML format
2023-06-09 17:13:57 -04:00
Sridhar Ratnakumar
c837b8851f Allow 'environment' to be attrset 2023-06-09 17:10:39 -04:00
Sridhar Ratnakumar
7f624ce916 Fix yq yaml conversion 2023-06-09 17:10:39 -04:00
Sridhar Ratnakumar
00389cd1cd Add debug option (dumps YAML) 2023-06-09 17:10:39 -04:00
Sridhar Ratnakumar
230955df9e Add submodule type for YAML file 2023-06-09 17:10:39 -04:00
Sridhar Ratnakumar
f2ec5b572a api: consistently use 'outputs' submodule 2023-06-09 15:09:23 -04:00
Sridhar Ratnakumar
248d02a4ff Refactor: separate out cli options 2023-06-09 15:02:14 -04:00
Sridhar Ratnakumar
15ad16e938
Merge pull request #15 from Platonic-Systems/split
Refactor: split into modules
2023-06-09 14:58:57 -04:00
Sridhar Ratnakumar
c5cd60e66c Decouple individual process-compose module
Also add a 'outputs.package' option.
2023-06-09 14:56:42 -04:00
Sridhar Ratnakumar
ed02f6ba19 Move settings def to its own module 2023-06-09 14:50:17 -04:00
Sridhar Ratnakumar
7d49fbd3c6
Allow per-config tui/port options (#14)
To do this, we must restructure the options such as that the top-level
option is an attrset of submodules. Each submodule then can have its own
port/tui (cli) options.
2023-06-09 14:33:59 -04:00
Sridhar Ratnakumar
a1fb056f11 Make test.sh build example; also set -e 2023-06-09 14:29:38 -04:00
Sridhar Ratnakumar
ea29723d37 We only support the 'up' subcommand 2023-06-09 14:21:22 -04:00
Sridhar Ratnakumar
8ca3cebc7e test: use tui option 2023-06-09 14:15:15 -04:00