Skip to content

Commit

Permalink
minor tweaks for devbox and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Feb 22, 2021
1 parent 096fd6b commit ae41a5b
Show file tree
Hide file tree
Showing 6 changed files with 177 additions and 31 deletions.
10 changes: 6 additions & 4 deletions db-sync.cue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ import (
address_mode: "host"
port: "snapshot"
task: "snapshot"
tags: [ "snapshot", #dbSyncNetwork, namespace]
tags: [ "ingress", "snapshot", #dbSyncNetwork, namespace]
meta: {
IngressHost: #domain
IngressMode: "http"
IngressBind: "*:443"
IngressServer: "_\(namespace)-snapshot-\(#dbSyncNetwork)._tcp.service.consul"
IngressCheck: """
http-check send meth GET uri /api/health
http-check expect status 200
"""
http-check send meth GET uri /api/health
http-check expect status 200
"""
}
}

Expand Down Expand Up @@ -150,6 +150,8 @@ import (
args: ["--config", "/local/snapshot.config"]
}

template: "genesis-template.json": data: "{}"

template: "local/snapshot.config": {
left_delimiter: "[["
right_delimiter: "]]"
Expand Down
186 changes: 162 additions & 24 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
url = "github:input-output-hk/jormungandr-nix";
flake = false;
};
jormungandr.url = "github:input-output-hk/jormungandr/v0.10.0-alpha.3-cargohash";
vit-servicing-station.url = "github:input-output-hk/vit-servicing-station/flake-nix-hash";
jormungandr.url = "github:input-output-hk/jormungandr/use-rust-nix";
vit-servicing-station.url = "github:input-output-hk/vit-servicing-station/use-rust-nix";
cardano-node.url = "github:input-output-hk/cardano-node?rev=14229feb119cc3431515dde909a07bbf214f5e26";
};

outputs = { self, nixpkgs, nixpkgs-unstable, utils, bitte, ... }@inputs:
Expand Down
4 changes: 4 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ in {

devbox-entrypoint = final.callPackage ./pkgs/devbox.nix { };

cardano-node = inputs.cardano-node.legacyPackages.${final.system};

inherit (cardano-node) cardano-cli;

checkFmt = final.writeShellScriptBin "check_fmt.sh" ''
export PATH="$PATH:${lib.makeBinPath (with final; [ git nixfmt gnugrep ])}"
. ${./pkgs/check_fmt.sh}
Expand Down
1 change: 1 addition & 0 deletions pkgs/devbox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in symlinkJoin {
name = "entrypoint";
paths = [
bashInteractive
cardano-cli
cargo
coreutils
curl
Expand Down
2 changes: 1 addition & 1 deletion servicing-station.cue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import (
driver: "exec"

config: {
flake: "github:input-output-hk/vit-servicing-station/flake-nix-hash#vit-servicing-station"
flake: "github:input-output-hk/vit-servicing-station/use-rust-nix#vit-servicing-station-server"
command: "/bin/vit-servicing-station-server"
args: ["--in-settings-file", "local/station-config.yaml"]
}
Expand Down

0 comments on commit ae41a5b

Please sign in to comment.