-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uptime-kuma: init package and module #189807
Conversation
61d2aff
to
b1acd70
Compare
e4ff1b9
to
6d26920
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1174 |
@@ -0,0 +1 @@ | |||
legacy-peer-deps=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that required for the update script? Can't we supply that via a argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is required, if I delete .npmrc I get this kind of errors : request to https://registry.npmjs.org/chart.js failed: cache mode is 'only-if-cached' but no cached response is available.
We may be able to supply it via argument but I have no idea how to achieve that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may be able to supply it via argument but I have no idea how to achieve that.
We need a custom update script anyway so we should supply it there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuperSandro2000 I've added an update script. Sorry I wasn't clear earlier, the .npmrc file is required for building the package, not for the update script.
3e8d27a
to
b81db18
Compare
@RaitoBezarius @SuperSandro2000 thanks for your reviews! I have implemented your suggestions. I have also bumped the package to version 1.18.0 (released yesterday). |
b81db18
to
ccbe4b7
Compare
812e071
to
de59bd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Module LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes LGTM.
pkgs/servers/monitoring/uptime-kuma/fix-database-permissions.patch
Outdated
Show resolved
Hide resolved
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we use a vendorHash isntead of 29k lines of lock file?
pkgs/servers/monitoring/uptime-kuma/fix-database-permissions.patch
Outdated
Show resolved
Hide resolved
31f38a8
to
efe1ee7
Compare
@SuperSandro2000 I'm not sure to know what you're talking about. I've seen references about vendorHash only in the context of go modules. |
@SuperSandro2000 I've made the changes you've suggested, I think we can merge if everything look fine to you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently using uptime-kuma via podman but it'd be nice to have a module 🚀
I've added some comments
Also please update the PR title to at least have uptime-kuma matching the package name rather than Uptime Kuma
Could you squash into 2 commits? Otherwise the large files are still part of the history, which I'd like to prevent |
@Mindavi I'll squash, I'm not completely done taking into account the remarks from @06kellyjac |
Oops, I totally misread and thought those files were not needed anymore :). Then it doesn't matter too much. Just make sure to adhere to guidelines regarding commit messages then, then it's all good. Nothing to do about the large files I guess |
No problem, I'll finish taking into account the last comments that I got and then squash the commits :) |
434c919
to
0830027
Compare
I think I addressed all the remarks. @Mindavi @06kellyjac if you want to have another look ! |
02637c4
to
6e72e54
Compare
6e72e54
to
7c7a98c
Compare
Description of changes
This adds the uptime-kuma package and module. Uptime-kuma is a fancy self-hosted monitoring tool.
This PR also contain a nixos test for the uptime-kuma module, testing basic functionality (getting http response).
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes