Table of Contents

Class DindChecker

Namespace
Ando.Utilities
Assembly
ando.dll

Checks if build operations require Docker-in-Docker and prompts user if needed.

public class DindChecker
Inheritance
DindChecker
Inherited Members

Constructors

DindChecker(IBuildLogger)

public DindChecker(IBuildLogger logger)

Parameters

logger IBuildLogger

Fields

DindEnvVar

Environment variable used to pass DIND setting to child builds. When set to "1" or "true", child builds automatically enable DIND mode.

public const string DindEnvVar = "ANDO_DIND"

Field Value

string

Methods

CheckAndPrompt(IStepRegistry, bool, string)

Checks if DIND is required and prompts the user if needed. Also scans child builds for DIND requirements.

public DindCheckResult CheckAndPrompt(IStepRegistry registry, bool hasDindFlag, string projectRoot)

Parameters

registry IStepRegistry

The step registry containing registered build steps.

hasDindFlag bool

Whether --dind flag was provided on command line.

projectRoot string

The project root directory for config file access.

Returns

DindCheckResult

The result indicating how DIND should be handled.

ShouldEnableDind(DindCheckResult)

Determines whether DIND should be enabled based on the check result.

public static bool ShouldEnableDind(DindCheckResult result)

Parameters

result DindCheckResult

The result from CheckAndPrompt.

Returns

bool

True if DIND should be enabled, false otherwise.