mirror of
https://github.com/vacp2p/cs-codex-dist-tests.git
synced 2025-02-23 15:58:21 +00:00
24 lines
742 B
C#
24 lines
742 B
C#
|
using KubernetesWorkflow;
|
|||
|
|
|||
|
namespace DistTestCore.Marketplace
|
|||
|
{
|
|||
|
public class CodexContractsContainerRecipe : ContainerRecipeFactory
|
|||
|
{
|
|||
|
public const string DockerImage = "thatbenbierens/codex-contracts-deployment";
|
|||
|
|
|||
|
protected override string Image => DockerImage;
|
|||
|
|
|||
|
protected override void Initialize(StartupConfig startupConfig)
|
|||
|
{
|
|||
|
var config = startupConfig.Get<CodexContractsContainerConfig>();
|
|||
|
|
|||
|
var ip = config.BootstrapNodeIp;
|
|||
|
var port = config.JsonRpcPort.Number;
|
|||
|
|
|||
|
AddEnvVar("DISTTEST_NETWORK_URL", $"http://{ip}:{port}");
|
|||
|
AddEnvVar("HARDHAT_NETWORK", "codexdisttestnetwork");
|
|||
|
AddEnvVar("KEEP_ALIVE", "1");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|