Class DindChecker
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
loggerIBuildLogger
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
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
registryIStepRegistryThe step registry containing registered build steps.
hasDindFlagboolWhether --dind flag was provided on command line.
projectRootstringThe 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
resultDindCheckResultThe result from CheckAndPrompt.
Returns
- bool
True if DIND should be enabled, false otherwise.