Skip to content

Commit

Permalink
imp: tremendous image push speed optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed May 13, 2022
1 parent f39041e commit 060bf9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

17 changes: 16 additions & 1 deletion nix/cardano/oci-images.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ in {
"cardano-node" = n2c.buildImage {
name = "docker.infra.aws.iohkdev.io/cardano-node";
maxLayers = 25;
layers = [(n2c.buildLayer {deps = [packages.cardano-node];})];
layers = [
(n2c.buildLayer {deps = entrypoints.cardano-node.runtimeInputs;})
(n2c.buildLayer {deps = [packages.cardano-node];})
];
contents = [nixpkgs.bashInteractive nixpkgs.iana-etc]; # healthChecks.cardano-node-network-sync];
config.Cmd = [
"${entrypoints.cardano-node}/bin/entrypoint"
Expand All @@ -18,6 +21,10 @@ in {
"cardano-wallet" = n2c.buildImage {
name = "docker.infra.aws.iohkdev.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"
Expand All @@ -26,6 +33,10 @@ in {
"cardano-db-sync" = n2c.buildImage {
name = "docker.infra.aws.iohkdev.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]; # healthChecks.cardano-db-sync-network-sync];
config.Cmd = [
"${entrypoints.cardano-db-sync}/bin/entrypoint"
Expand All @@ -34,6 +45,10 @@ in {
"cardano-submit-api" = n2c.buildImage {
name = "docker.infra.aws.iohkdev.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];
config.Cmd = [
"${entrypoints.cardano-submit-api}/bin/entrypoint"
Expand Down

0 comments on commit 060bf9b

Please sign in to comment.