2
0
mirror of synced 2025-01-11 09:06:56 +00:00
cs-codex-dist-tests/ProjectPlugins/CodexContractsPlugin/CodexContractsContainerRecipe.cs

28 lines
1.1 KiB
C#
Raw Normal View History

2023-09-15 16:27:08 +02:00
using KubernetesWorkflow;
namespace CodexContractsPlugin
{
public class CodexContractsContainerRecipe : ContainerRecipeFactory
{
2023-09-19 13:58:45 +02:00
public static string DockerImage { get; } = "codexstorage/codex-contracts-eth:latest-dist-tests";
2023-09-15 16:27:08 +02:00
public const string MarketplaceAddressFilename = "/hardhat/deployments/codexdisttestnetwork/Marketplace.json";
public const string MarketplaceArtifactFilename = "/hardhat/artifacts/contracts/Marketplace.sol/Marketplace.json";
public override string AppName => "codex-contracts";
2023-09-19 13:58:45 +02:00
public override string Image => DockerImage;
2023-09-15 16:27:08 +02:00
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<CodexContractsContainerConfig>();
2023-09-21 10:56:48 +02:00
var ip = config.GethNode.StartResult.Container.Pod.PodInfo.Ip;
2023-09-19 11:51:59 +02:00
var port = config.GethNode.StartResult.HttpPort.Number;
2023-09-15 16:27:08 +02:00
AddEnvVar("DISTTEST_NETWORK_URL", $"http://{ip}:{port}");
AddEnvVar("HARDHAT_NETWORK", "codexdisttestnetwork");
AddEnvVar("KEEP_ALIVE", "1");
}
}
}