/// <summary> /// Builds an image from a Dockerfile in the solution's folder with a matching label. /// </summary> /// <param name="label">Label to match</param> /// <param name="contextRelativeToDockerfile">Directory to build the docker file from (normally "." or "..")</param> /// <param name="buildParameters">Optional parameters</param> /// <param name="locator">Locates Dockerfile</param> public DockerfileImageProvider(KeyValuePair <string, string> label, string contextRelativeToDockerfile, ImageBuildParameters buildParameters = null, IDockerfileLocator locator = null) : this((locator ?? new DockerfileLocator()).GetDockerfile(label), contextRelativeToDockerfile, buildParameters) { }
/// <summary> /// Builds an image from a Dockerfile in the solution's folder with a matching "project" label. /// </summary> /// <param name="projectName">Value of the project label</param> /// <param name="contextRelativeToDockerfile">Directory to build the docker file from (normally "." or "..")</param> /// <param name="buildParameters">Optional parameters</param> /// <param name="locator">Locates Dockerfile</param> public DockerfileImageProvider(string projectName, string contextRelativeToDockerfile, ImageBuildParameters buildParameters = null, IDockerfileLocator locator = null) : this(new KeyValuePair <string, string>("project", projectName), contextRelativeToDockerfile, buildParameters, locator) { }