shivaraj-bh
db9e785580
ci(example): share-services folder isn't a flake root
...
It is the root for two other subflakes -- northwind and pgweb
+ ci(example): add share-services/pgweb update-flake-lock cron
2024-04-30 00:22:22 +05:30
shivaraj-bh
5229c9a2c3
chore(test): revert forcing the override for services-flake input
...
Forcing the override causes the update-flake-lock github action to fail
2024-04-29 23:57:41 +05:30
github-actions[bot]
fa079ed2a9
chore: Update example/simple/flake.lock ( #175 )
...
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock )
GitHub Action.
```
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3?narHash=sha256-cKDDciXGpMEjP1n6HlzKinN0H%2BoLmNpgeCTzYnsA2po%3D' (2023-06-01)
→ 'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d?narHash=sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm%2BGpZNw%3D' (2024-04-01)
• Updated input 'flake-parts/nixpkgs-lib':
'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib&narHash=sha256-8ywr3AkblY4%2B%2B3lIVxmrWZFzac7%2Bf32ZEhH/A8pNscI%3D' (2023-05-31)
→ 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089?dir=lib&narHash=sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk%3D' (2024-03-29)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/b604023e0a5549b65da3040a07d2beb29ac9fc63?narHash=sha256-kO67pYOeT/6m9BnPO%2BzNHWnC4eGiW87gIAJ%2Be8f3gwU%3D' (2023-10-06)
→ 'github:nixos/nixpkgs/d6f6eb2a984f2ba9a366c31e4d36d65465683450?narHash=sha256-Yg5D5LhyAZvd3DZrQQfJAVK8K3TkUYKooFtH1ulM0mw%3D' (2024-04-27)
• Updated input 'process-compose-flake':
'github:Platonic-Systems/process-compose-flake/dded78fff52b069bd55607b15b49739e8310efb3?narHash=sha256-kFgAt2kJZ9JleWgo%2BcFULoya31o9EiukNg1H4G0%2BKnM%3D' (2024-02-22)
→ 'github:Platonic-Systems/process-compose-flake/ee8cd505f08f6cd691930e70987a306b7726851b?narHash=sha256-pQIg3wrNBDdRiuhcVC8DFmTXK8GHtR%2BiV%2B5Gvsozx5s%3D' (2024-04-24)
• Updated input 'services-flake':
'github:juspay/services-flake/625f2070346f1a6d11d5c482c0c987010c3ba2fc?narHash=sha256-5CUc2m90tIx8vCuQ9bSLiNl2x9VDijXR4hVdwagoEj8%3D' (2024-02-22)
→ 'github:juspay/services-flake/dbb93b39ce83530e6f86daa46c671055f224816d?narHash=sha256-%2BgszdjbWWt5m%2B77weTSk9l67Z4cUAmDLp%2BucjJViEpc%3D' (2024-04-26)
```
### Running GitHub Actions on this PR
GitHub Actions will not run workflows on pull requests which are opened
by a GitHub Action.
To run GitHub Actions workflows on this PR, run:
```sh
git branch -D update_flake_lock_action
git fetch origin
git checkout update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force
```
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-29 23:47:29 +05:30
Attila Ersek
dbb93b39ce
feat(mysql): allow configuring socketDir on mysql. if not provided, uses dataDir as default. solves #171
2024-04-26 18:42:04 +05:30
shivaraj-bh
4c9fd4fb3b
chore(changelog): update unreleased changes
2024-04-24 14:37:50 +05:30
shivaraj-bh
620bf31333
chore(envrc): nix_direnv_watch_file is deprecated, use watch_file
2024-04-24 14:36:27 +05:30
Attila Ersek
b5d29b0734
chore(mysql): cover mysql importTimezones with tests
2024-04-24 14:29:24 +05:30
Attila Ersek
3082fcf5ca
fix(mysql): use absolute socket path in configureTimezones. this fixes #169
2024-04-24 14:29:24 +05:30
Shivaraj B H
4a48d4a7b9
ci: add update-flake-lock
cron jobs for example-{simple, share-services}
and test
( #168 )
...
resolves #167
2024-04-22 15:59:11 +05:30
Sridhar Ratnakumar
4b2bf2a9a6
chore(nix): Add flake 'description'
2024-04-22 14:21:16 +10:00
John Hampton
4d363b6d22
test(postgres): set socketDir with empty listen_addresses
...
Test a postgres service with socketDir set and empty listen_addresses.
2024-04-14 08:57:42 +05:30
John Hampton
6c9b34f0b1
fix(postgres): fix pg_isready issue with empty listen_addresses
...
This commit resolves the issue where `pg_isready` would fail when
`socketDir` is set and `listen_addresses` is empty. `pg_isready` is now
modified to leverage `socketDir` when it is available.
2024-04-14 08:57:42 +05:30
Shivaraj B H
04b5f77604
fix(grafana): add coreutils
as runtimeInput for the startScript ( #164 )
...
`readlink` shipped by default in macOS doesn't support `-m` flag
2024-04-11 00:42:46 +05:30
Javier Pollak
8d390cb955
fix(pgadmin): Fix pgadmin scripts on MacOS ( #163 )
...
`readlink -m` is invalid on mac. Added coreutils as a runtime input for darwin.
2024-04-11 00:31:33 +05:30
Shivaraj B H
eb4364c92a
fix(test): grafana on darwin is no longer broken in upstream ( #161 )
...
fixed here: https://github.com/NixOS/nixpkgs/pull/297968
Also, hydra-checks pass on all four platforms:
```sh
shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-darwin
Build Status for grafana.aarch64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254421303
shivaraj in 🌐 nixos in ~ took 45s
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-darwin
Build Status for grafana.x86_64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254422747
shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-linux
Build Status for nixpkgs.grafana.x86_64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254385494
shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-linux
Build Status for nixpkgs.grafana.aarch64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254392946
```
2024-04-04 11:14:35 +05:30
Shivaraj B H
8bbdc91393
feat(dev): add just changelog
( #162 )
...
resolves #134
2024-04-01 03:40:37 +05:30
shivaraj-bh
423b85482d
refactor(deprecation): replace types.string with types.str
...
see https://github.com/NixOS/nixpkgs/pull/66346
2024-03-29 21:20:23 +05:30
shivaraj-bh
ecc409436c
chore(postgres): default value for listen_addresses is already localhost
...
This is true after https://github.com/juspay/services-flake/pull/160
2024-03-27 12:43:35 +05:30
Shivaraj B H
18d5c1d168
fix(postgres): empty socketDir
by default ( #160 )
...
resolves #139
> empty `unix_socket_directories` means not listening on any Unix-domain sockets, in which case only TCP/IP sockets can be used to connect to the server.
see: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-UNIX-SOCKET-DIRECTORIES
* use TCP/IP by default for health check
2024-03-26 18:44:11 +05:30
Sridhar Ratnakumar
3090d6f489
ci: Upgrade to new nixci
2024-03-25 10:25:19 -04:00
Shivaraj B H
f8110887f1
docs(mysql): init ( #157 )
2024-03-21 15:04:28 +05:30
shivaraj-bh
fd961ce2aa
docs: redis-cluster is folgezettel child of redis service
2024-03-21 08:31:19 +05:30
Shivaraj B H
e706d9301c
docs: create placeholders ( #156 )
2024-03-21 00:27:36 +05:30
Shivaraj B H
819ab20e8e
refactor: writeShellScriptBin -> writeShellApplication ( #155 )
...
Provides us with following benefits:
- use `runtimeInputs` instead of manually exporting `PATH`
- get shellcheck by default
---------
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2024-03-19 01:47:25 +05:30
Shivaraj B H
f158353b59
fix(mysql)!: look for *.sql
files in the top-level schema directory ( #154 )
...
* mysql service would assume that all the `*.sql` files in the directory, provided by `initialDatabases [{ schema = <directory>; … }]`, exists in a folder named [mysql-databases](291e7be83a/nix/mysql.nix (L239-L241)
), after this change it would just look for all the `*.sql` files in the top-level schema directory.
* add tests
2024-03-18 22:32:08 +05:30
Sridhar Ratnakumar
291e7be83a
chore(docs): Put pgAdmin under postgresql and link
2024-03-13 08:25:38 -04:00
Sridhar Ratnakumar
c7d48bbc87
chore(doc): Slugs must be flat
...
Should be:
- http://127.0.0.1:5566/services-flake/datadir
Not:
- http://127.0.0.1:5566/services-flake/guide/datadir
2024-03-13 08:01:41 -04:00
Sridhar Ratnakumar
67ac470c2d
chore(docs): Fix a few things about docs
2024-03-13 07:58:17 -04:00
Shivaraj B H
67b4741f7b
docs: (readme) link to datadir
doc from cfp
; (index) add guide ( #150 )
...
- `Guide` page is not a child of `services-flake` in
<https://community.flake.parts > page:
<img width="288" alt="Screenshot 2024-03-13 at 3 54 20 PM"
src="https://github.com/juspay/services-flake/assets/23645788/58f31702-ac4b-4338-83eb-e7a69c1ea705 ">
- Link to a more detailed datadir documentation in README
2024-03-13 16:05:01 +05:30
Sridhar Ratnakumar
7e2e1fa909
chore(docs): Use cfp module ( #149 )
...
This enables us to preview the whole community.flake.parts (live server
or static site) in the context of the local docs (./doc).
Uses https://github.com/flake-parts/community.flake.parts/pull/52
2024-03-12 19:33:56 -04:00
Sridhar Ratnakumar
05df48dcbf
readme: Correction of noun
2024-03-12 19:05:49 -04:00
Shivaraj B H
0db2423f20
docs(postgres): init; specify unix-domain socket length limitation ( #147 )
...
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2024-03-13 00:56:57 +05:30
Shivaraj B H
18f9decf13
refactor(postgres): replace string argument with attrset for connectionURI
( #146 )
...
for justification, see:
https://github.com/juspay/services-flake/pull/143#discussion_r1521290361
2024-03-13 00:40:13 +05:30
Shivaraj B H
fb48b6b612
docs(guide): dataDir init; unix-domain socket length limitation ( #144 )
...
---------
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2024-03-12 22:35:35 +05:30
Shivaraj B H
8c25972cfb
feat(postgres): add connectionURI option ( #143 )
...
resolves #141
2024-03-12 14:24:28 +05:30
Shivaraj B H
62fe23fbef
refactor(example): remove unused pg2 service ( #142 )
...
resolves #140
2024-03-12 14:24:07 +05:30
Sridhar Ratnakumar
1c6e8fc867
fix(template): Was broken in previous PR merge
2024-03-11 14:24:25 -04:00
Sridhar Ratnakumar
705c2cc497
docs(readme): Add comparison table ( #135 )
2024-03-11 14:21:11 -04:00
Sridhar Ratnakumar
54ed8d27f8
chore(example): Change branch to 'main'
...
Since the PR is merged.
2024-03-11 14:06:23 -04:00
Shivaraj B H
51ecb71351
docs(example): add share-services example ( #137 )
...
Adds a 2nd example demonstrating how to share services between flakes.
Also move the current example to `./example/simple`.
2024-03-11 14:05:30 -04:00
Sridhar Ratnakumar
218fa6cc9a
docs: keep readme intro in sync with index.md
2024-03-07 15:35:10 -05:00
Sridhar Ratnakumar
ead595bbfd
docs: Fix broken link
2024-03-07 15:34:34 -05:00
Sridhar Ratnakumar
3e849aa744
test: refactor, by factoring 'pkgs' in its own module
...
We don't need per-file package overlays, since we don't envision having too many of them. Whenever possible, get them from nixpkgs, to keep our tests nimble.
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
31151df8e4
test(grafana): Use older nixpkgs for grafana on macOS
...
This speeds up build, because we no longer have to compile grafana locally and wait for eternity.
cf. https://github.com/NixOS/nixpkgs/issues/273998
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
5a54b621ab
test: Apply overlay only on darwin
...
Other platforms need not unnecessarily build these packages
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
c03d66eb44
chore(.envrc): Reload direnv when any relevant files change
2024-03-07 14:04:05 -05:00
Sridhar Ratnakumar
6c1e71c242
docs: Have canonical services list
...
Without todos or referencing Nix code in .md.
2024-03-07 13:58:11 -05:00
Sridhar Ratnakumar
acf4e9ad6e
test(grafana): Link to upstream issue
...
https://github.com/NixOS/nixpkgs/issues/273998
2024-03-07 13:07:17 -05:00
Sridhar Ratnakumar
bcf4a493f8
test(pgadmin): Link to upstream bug ( #129 )
...
https://github.com/NixOS/nixpkgs/issues/281214
2024-03-07 11:45:45 -05:00
Shivaraj B H
1ae2579853
docs: add motivation for creating services-flake ( #125 )
...
resolves #124 and #123
---------
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2024-03-07 22:10:16 +05:30