Wednesday, December 28, 2022
apps@conference.yunohost.org
December
Mon Tue Wed Thu Fri Sat Sun
      1
2
3
4
5
6
7
8
9
10
11
12 13 14 15 16
17
18
19
20
21
22
23
24
25
26 27
28
29
30
31
 
             

[09:32:25] <florent> I am currently packaging Loki, with the hope to help people to monitor services like PeerTube:
https://github.com/YunoHost-Apps/loki_ynh/
[09:32:53] <florent> It seems that Loki is much generally used along with Promtail
[09:33:08] <florent> Both would have their own configuration files and systemd service
[09:33:34] <florent> Would you suggest me to package them altogether or should they be packaged independently?
[09:34:17] <florent> (Also Promtail has to be configured to connect with Loki, that's why I am scratching my head a bit)
[09:35:26] <florent> And interestingly, both of them are released at the same time with the same version at this page:
https://github.com/grafana/loki/releases
[12:51:59] <Aleks (he/him/il/lui)> hmmm
[12:52:16] <Aleks (he/him/il/lui)> i guess if they are really tight coupled it makes sense to install both
[14:02:16] <florent> Aleks (he/him/il/lui): Thanks! I think I'll package them both and attempt to decouple them if I feel the need to do so.
[14:10:08] <tituspijean> Note that we have a helper now to install an app from within an another app install, cf. Peertube and Prosody
[14:30:45] <florent> Fair point
[14:31:08] <florent> Also what I thought to miss was the ability to know the loki port when installing promtail
[14:32:07] <florent> The real point therefore is truly whether both are sufficiently tight to integrate both in one package
[14:32:53] <tituspijean> If the app is installed separately, you can get it with `yunohost app setting loki port`. Otherwise, typical "grep"ping should be enough
[14:33:48] <florent> Yep
[16:34:52] <florent> I am looking for a way to merge yaml files into one or to include a yaml file in another without pip dependencies (I know yq for example). Do you have one?
[16:35:20] <florent> Or a way to convert yaml into json
[16:40:48] <florent> yay!
```bash
python3 -c "import yaml, json; print(json.dumps(yaml.safe_load(open('/etc/path/to/file.yaml'))))"
```
[16:46:05] <florent> Could a helper that would merge yaml or json files into one be useful? The use case is to have a default configuration file and a configuration file the user (or other apps) can create to override the first one.
[21:49:29] <Yunohost Git/Infra notifications> [apps] @ericgaspar pushed 1 commit to Homarr: Update apps.json https://github.com/YunoHost/apps/commit/d69ce77e37ca28d6b40c65b6a5611cf7dbd05d8b
[21:49:29] <Yunohost Git/Infra notifications> [apps] @ericgaspar created new branch Homarr
[21:49:40] <Yunohost Git/Infra notifications> [apps] @ericgaspar opened pull request #1558: Add Homarr to catalog https://github.com/YunoHost/apps/pull/1558