-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
elk: 6.3.2 -> 6.5.1 #51225
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
elk: 6.3.2 -> 6.5.1 #51225
Conversation
5bbbdc4
to
bc0620c
Compare
@GrahamcOfBorg test elk.ELK-6 |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: tests.elk.ELK-6 Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: tests.elk.ELK-6 Partial log (click to expand)
|
bc0620c
to
9bc6af7
Compare
9bc6af7
to
583b58a
Compare
@Mic92 care to review this? |
# disable the version check. | ||
postPatch = '' | ||
sed -i 's|currentVersion === requiredVersion|true|' \ | ||
src/setup_node_env/node_version_validator.js |
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.
I would prefer a patch here so we see when it no longer applies.
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.
Done.
}; | ||
|
||
patches = [ ./es-home-6.x.patch ]; | ||
|
||
postPatch = '' | ||
sed -i "s|ES_CLASSPATH=\"\$ES_HOME/lib/\*\"|ES_CLASSPATH=\"$out/lib/*\"|" ./bin/elasticsearch-env | ||
sed -i "s|ES_CLASSPATH=\"\$ES_CLASSPATH:\$ES_HOME/\$additional_classpath_directory/\*\"|ES_CLASSPATH=\"\$ES_CLASSPATH:$out/\$additional_classpath_directory/\*\"|" ./bin/elasticsearch-cli |
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 using substituteInPlace
for both? I don't spot regexes here and it should be more readable.
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.
I've implemented your suggestion and it's more readable indeed.
ExecStart = | ||
"${cfg.package}/bin/kibana" + | ||
" --config ${cfgFile}" + | ||
" --path.data ${cfg.dataDir}"; |
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.
So it no longer uses its working directory for storing data?
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.
I don't think so. What I know for sure is that kibana fails if --path.data
is not set.
@GrahamcOfBorg test elk |
Motivation for this change
Also includes the new
journalbeat6
beat which is a replacement forjournalbeat
which is now maintained by Elastic.Things done
The following tests succeed on my system:
$ nix-build nixos/tests/elk.nix -A ELK-6
$ NIXPKGS_ALLOW_UNFREE=1 nix-build nixos/tests/elk.nix -A ELK-6 --arg enableUnfree true
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)