Skip to content

Commit

Permalink
en: change entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanslwong-crypto-com committed Dec 27, 2024
1 parent 5d8904b commit f51e83e
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,37 @@
fi
'';
};
copyToRoot = buildEnv {
name = "image-root";
paths = [
bashInteractive
coreutils
dockerTools.caCertificates
entrypoint
generateSecrets
];
};
in {
packages.mainnet = dockerTools.buildImage {
name = "mainnet";
tag = "nix";
fromImage = base-image-mainnet;
inherit copyToRoot;
copyToRoot = buildEnv {
name = "image-root";
paths = [
bashInteractive
coreutils
dockerTools.caCertificates
"${entrypoint external-node-mainnet}"
"${generateSecrets external-node-mainnet}"
];
};
config.Entrypoint = ["/usr/bin/entrypoint.sh"];
};
packages.testnet = dockerTools.buildImage {
name = "testnet";
tag = "nix";
fromImage = base-image-testnet;
inherit copyToRoot;
copyToRoot = buildEnv {
name = "image-root";
paths = [
bashInteractive
coreutils
dockerTools.caCertificates
"${entrypoint external-node-testnet}"
"${generateSecrets external-node-testnet}"
];
};
config.Entrypoint = ["/usr/bin/entrypoint.sh"];
};
});
Expand Down

0 comments on commit f51e83e

Please sign in to comment.