Skip to content

Commit f4f2509

Browse files
committed
feat: add oura package, entrypoint, and oci-image
1 parent 6fe6603 commit f4f2509

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
cardano-wallet.url = "github:input-output-hk/cardano-wallet";
2020
cardano-ogmios.url = "github:input-output-hk/cardano-ogmios/vasil";
2121
# --------------------------------------------------------------
22+
oura.url = "github:txpipe/oura";
2223
};
2324
outputs = inputs: let
2425
nomadEnvs = inputs.self.${system}.cloud.nomadEnvs;

nix/cardano/entrypoints.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,4 +565,16 @@ in {
565565
exec ${packages.ogmios}/bin/ogmios "''${args[@]}"
566566
'';
567567
};
568+
569+
oura = writeShellApplication {
570+
runtimeInputs = prelude-runtime;
571+
debugInputs = [packages.oura];
572+
name = "entrypoint";
573+
text = ''
574+
575+
${prelude}
576+
577+
exec ${packages.oura}/bin/oura daemon "''${args[@]}"
578+
'';
579+
};
568580
}

nix/cardano/oci-images.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,18 @@ in {
7474
];
7575
config.User = "1000:1000";
7676
};
77+
oura = buildDebugImage entrypoints.oura {
78+
name = "registry.ci.iog.io/oura";
79+
maxLayers = 25;
80+
layers = [
81+
(n2c.buildLayer {deps = entrypoints.oura.runtimeInputs;})
82+
(n2c.buildLayer {deps = [packages.oura];})
83+
];
84+
contents = [nixpkgs.bashInteractive];
85+
config.Cmd = [
86+
"${entrypoints.oura}/bin/entrypoint"
87+
];
88+
config.User = "1000:1000";
89+
};
90+
7791
}

nix/cardano/packages/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
inherit (inputs) nixpkgs cardano-wallet cardano-db-sync cardano-node cardano-ogmios;
66
inherit (inputs.cells) cardano;
77
inherit (nixpkgs) lib;
8+
9+
inherit (inputs.oura.packages) oura;
810
cardano-node-project =
911
(
1012
cardano-node.legacyPackages.extend (
@@ -36,6 +38,7 @@ in {
3638
cardano-db-sync = cardano-db-sync.packages.cardano-db-sync;
3739
bech32 = cardano-node-project.hsPkgs.bech32.components.exes.bech32;
3840
ogmios = cardano-ogmios.packages.ogmios;
41+
3942
cardano-config-html-public = let
4043
publicEnvNames = ["mainnet" "testnet" "vasil-qa" "vasil-dev"];
4144
environments = lib.filterAttrs (n: _: builtins.elem n publicEnvNames) cardano.environments;

0 commit comments

Comments
 (0)