/
oci-images.nix
77 lines (76 loc) · 2.56 KB
/
oci-images.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
inputs,
cell,
}: let
inherit (inputs) nixpkgs;
inherit (inputs.bitte-cells) _utils;
inherit (cell) entrypoints packages healthChecks;
n2c = inputs.n2c.packages.nix2container;
buildDebugImage = ep: o: n2c.buildImage (_utils.library.mkDebugOCI ep o);
in {
cardano-node = buildDebugImage entrypoints.cardano-node {
name = "registry.ci.iog.io/cardano-node";
maxLayers = 25;
layers = [
(n2c.buildLayer {deps = entrypoints.cardano-node.runtimeInputs;})
(n2c.buildLayer {deps = [packages.cardano-node];})
];
contents = [nixpkgs.bashInteractive nixpkgs.iana-etc];
config.Cmd = [
"${entrypoints.cardano-node}/bin/entrypoint"
];
config.User = "1000:1000";
};
cardano-db-sync = buildDebugImage entrypoints.cardano-db-sync {
name = "registry.ci.iog.io/cardano-db-sync";
maxLayers = 25;
layers = [
(n2c.buildLayer {deps = entrypoints.cardano-db-sync.runtimeInputs;})
(n2c.buildLayer {deps = [packages.cardano-db-sync];})
];
contents = [nixpkgs.bashInteractive nixpkgs.iana-etc];
config.Cmd = [
"${entrypoints.cardano-db-sync}/bin/entrypoint"
];
config.User = "1000:1000";
};
cardano-wallet = buildDebugImage entrypoints.cardano-wallet {
name = "registry.ci.iog.io/cardano-wallet";
maxLayers = 25;
layers = [
(n2c.buildLayer {deps = entrypoints.cardano-wallet.runtimeInputs;})
(n2c.buildLayer {deps = [packages.cardano-wallet];})
];
contents = [nixpkgs.bashInteractive nixpkgs.iana-etc healthChecks.cardano-wallet-network-sync];
config.Cmd = [
"${entrypoints.cardano-wallet}/bin/entrypoint"
];
config.User = "1000:1000";
};
cardano-submit-api = buildDebugImage entrypoints.cardano-submit-api {
name = "registry.ci.iog.io/cardano-submit-api";
maxLayers = 25;
layers = [
(n2c.buildLayer {deps = entrypoints.cardano-submit-api.runtimeInputs;})
(n2c.buildLayer {deps = [packages.cardano-submit-api];})
];
contents = [nixpkgs.bashInteractive nixpkgs.iana-etc healthChecks.cardano-submit-api-network-sync];
config.Cmd = [
"${entrypoints.cardano-submit-api}/bin/entrypoint"
];
config.User = "1000:1000";
};
ogmios = buildDebugImage entrypoints.ogmios {
name = "registry.ci.iog.io/ogmios";
maxLayers = 25;
layers = [
(n2c.buildLayer {deps = entrypoints.ogmios.runtimeInputs;})
(n2c.buildLayer {deps = [packages.ogmios];})
];
contents = [nixpkgs.bashInteractive];
config.Cmd = [
"${entrypoints.ogmios}/bin/entrypoint"
];
config.User = "1000:1000";
};
}