DockerBuildRequest Class
- java.
lang. Object - com.
microsoft. azure. management. containerregistry. RunRequest - com.
microsoft. azure. management. containerregistry. DockerBuildRequest
- com.
- com.
public class DockerBuildRequest
extends RunRequest
The parameters for a docker quick build.
Constructor Summary
Constructor | Description | |
---|---|---|
DockerBuildRequest() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Agent |
agentConfiguration()
Get the machine configuration of the run agent. |
java.util.List<Argument> |
arguments()
Get the collection of override arguments to be used when executing the run. |
java.lang.String |
dockerFilePath()
Get the Docker file path relative to the source location. |
java.util.List<java.lang.String> |
imageNames()
Get the fully qualified image names including the repository and tag. |
java.lang.Boolean |
isPushEnabled()
Get the value of this property indicates whether the image built should be pushed to the registry or not. |
java.lang.Boolean |
noCache()
Get the value of this property indicates whether the image cache is enabled or not. |
Platform |
platform()
Get the platform properties against which the run has to happen. |
java.lang.String |
sourceLocation()
Get the URL(absolute or relative) of the source context. |
java.lang.Integer |
timeout()
Get run timeout in seconds. |
Docker |
withAgentConfiguration(AgentProperties agentConfiguration)
Set the machine configuration of the run agent. |
Docker |
withArguments(List<Argument> arguments)
Set the collection of override arguments to be used when executing the run. |
Docker |
withDockerFilePath(String dockerFilePath)
Set the Docker file path relative to the source location. |
Docker |
withImageNames(List<String> imageNames)
Set the fully qualified image names including the repository and tag. |
Docker |
withIsPushEnabled(Boolean isPushEnabled)
Set the value of this property indicates whether the image built should be pushed to the registry or not. |
Docker |
withNoCache(Boolean noCache)
Set the value of this property indicates whether the image cache is enabled or not. |
Docker |
withPlatform(PlatformProperties platform)
Set the platform properties against which the run has to happen. |
Docker |
withSourceLocation(String sourceLocation)
Set the URL(absolute or relative) of the source context. |
Docker |
withTimeout(Integer timeout)
Set run timeout in seconds. |
Methods inherited from RunRequest
Methods inherited from java.lang.Object
Constructor Details
DockerBuildRequest
public DockerBuildRequest()
Method Details
agentConfiguration
public AgentProperties agentConfiguration()
Get the machine configuration of the run agent.
Returns:
arguments
public List
Get the collection of override arguments to be used when executing the run.
Returns:
dockerFilePath
public String dockerFilePath()
Get the Docker file path relative to the source location.
Returns:
imageNames
public List
Get the fully qualified image names including the repository and tag.
Returns:
isPushEnabled
public Boolean isPushEnabled()
Get the value of this property indicates whether the image built should be pushed to the registry or not.
Returns:
noCache
public Boolean noCache()
Get the value of this property indicates whether the image cache is enabled or not.
Returns:
platform
public PlatformProperties platform()
Get the platform properties against which the run has to happen.
Returns:
sourceLocation
public String sourceLocation()
Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
Returns:
timeout
public Integer timeout()
Get run timeout in seconds.
Returns:
withAgentConfiguration
public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfiguration)
Set the machine configuration of the run agent.
Parameters:
Returns:
withArguments
public DockerBuildRequest withArguments(List
Set the collection of override arguments to be used when executing the run.
Parameters:
Returns:
withDockerFilePath
public DockerBuildRequest withDockerFilePath(String dockerFilePath)
Set the Docker file path relative to the source location.
Parameters:
Returns:
withImageNames
public DockerBuildRequest withImageNames(List
Set the fully qualified image names including the repository and tag.
Parameters:
Returns:
withIsPushEnabled
public DockerBuildRequest withIsPushEnabled(Boolean isPushEnabled)
Set the value of this property indicates whether the image built should be pushed to the registry or not.
Parameters:
Returns:
withNoCache
public DockerBuildRequest withNoCache(Boolean noCache)
Set the value of this property indicates whether the image cache is enabled or not.
Parameters:
Returns:
withPlatform
public DockerBuildRequest withPlatform(PlatformProperties platform)
Set the platform properties against which the run has to happen.
Parameters:
Returns:
withSourceLocation
public DockerBuildRequest withSourceLocation(String sourceLocation)
Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
Parameters:
Returns:
withTimeout
public DockerBuildRequest withTimeout(Integer timeout)
Set run timeout in seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for