-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add documentation for the query string (#27)
Additionally creates a dev setup using nix and adds a logging setup based on a simple verbosity level.
- Loading branch information
Showing
38 changed files
with
1,001 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,4 +116,6 @@ helm-chart/renku-graph/charts/*tgz | |
# MAc | ||
.DS_Store | ||
|
||
.direnv/ | ||
.direnv/ | ||
*.qcow2 | ||
.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = inputs @ { | ||
self, | ||
nixpkgs, | ||
flake-utils, | ||
}: | ||
{ | ||
overlays.default = final: prev: { | ||
solr = self.packages.${prev.system}.solr; | ||
}; | ||
nixosConfigurations = let | ||
selfOverlay = { | ||
lib, | ||
config, | ||
... | ||
}: { | ||
nixpkgs.overlays = [ | ||
self.overlays.default | ||
]; | ||
system.stateVersion = "23.11"; | ||
}; | ||
in { | ||
dev-vm = nixpkgs.lib.nixosSystem { | ||
system = flake-utils.lib.system.x86_64-linux; | ||
specialArgs = {inherit inputs;}; | ||
modules = [ | ||
selfOverlay | ||
./nix/dev-vm.nix | ||
]; | ||
}; | ||
|
||
container = nixpkgs.lib.nixosSystem { | ||
system = flake-utils.lib.system.x86_64-linux; | ||
modules = [ | ||
({pkgs, ...}: { | ||
boot.isContainer = true; | ||
networking.useDHCP = false; | ||
}) | ||
selfOverlay | ||
./nix/solr-module.nix | ||
./nix/services.nix | ||
]; | ||
}; | ||
}; | ||
} | ||
// flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
selfPkgs = self.packages.${system}; | ||
in { | ||
formatter = pkgs.alejandra; | ||
packages = | ||
((import ./nix/dev-scripts.nix) {inherit (pkgs) concatTextFile writeShellScriptBin;}) | ||
// { | ||
solr = pkgs.callPackage (import ./nix/solr.nix) {}; | ||
}; | ||
|
||
devShells = rec { | ||
default = container; | ||
container = pkgs.mkShell { | ||
RS_SOLR_URL = "http://rsdev:8983/solr"; | ||
RS_REDIS_HOST = "rsdev"; | ||
RS_REDIS_PORT = "6379"; | ||
RS_CONTAINER = "rsdev"; | ||
RS_LOG_LEVEL = "3"; | ||
|
||
buildInputs = with pkgs; | ||
with selfPkgs; [ | ||
redis | ||
jq | ||
|
||
redis-push | ||
recreate-container | ||
start-container | ||
solr-create-core | ||
solr-delete-core | ||
solr-recreate-core | ||
]; | ||
}; | ||
vm = pkgs.mkShell { | ||
RS_SOLR_URL = "http://localhost:18983/solr"; | ||
RS_REDIS_HOST = "localhost"; | ||
RS_REDIS_PORT = "16379"; | ||
VM_SSH_PORT = "10022"; | ||
RS_LOG_LEVEL = "3"; | ||
|
||
buildInputs = with pkgs; | ||
with selfPkgs; [ | ||
redis | ||
jq | ||
|
||
redis-push | ||
vm-build | ||
vm-run | ||
vm-ssh | ||
vm-solr-create-core | ||
vm-solr-delete-core | ||
vm-solr-recreate-core | ||
]; | ||
}; | ||
}; | ||
}); | ||
} |
Oops, something went wrong.