public class DockerTemplateBase extends Object implements hudson.model.Describable<DockerTemplateBase>
| Modifier and Type | Class and Description |
|---|---|
static class |
DockerTemplateBase.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
boolean |
bindAllPorts |
String |
bindPorts |
Integer |
cpuShares |
String[] |
dnsHosts |
String |
dockerCommand
Field dockerCommand
|
String[] |
environment |
String |
hostname |
String |
lxcConfString
Field lxcConfString
|
Integer |
memoryLimit |
Integer |
memorySwap |
String |
network |
boolean |
privileged |
boolean |
tty |
String[] |
volumes
Every String is volume specification
|
String |
volumesFrom
Deprecated.
use
volumesFrom2 |
String[] |
volumesFrom2
Every String is volumeFrom specification
|
| Constructor and Description |
|---|
DockerTemplateBase(String image,
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry,
String dnsString,
String network,
String dockerCommand,
String volumesString,
String volumesFromString,
String environmentsString,
String lxcConfString,
String hostname,
Integer memoryLimit,
Integer memorySwap,
Integer cpuShares,
String bindPorts,
boolean bindAllPorts,
boolean privileged,
boolean tty,
String macAddress) |
public final String dockerCommand
public final String lxcConfString
public final String hostname
public final String[] dnsHosts
public final String network
public String[] volumes
@Deprecated public String volumesFrom
volumesFrom2public String[] volumesFrom2
@CheckForNull public final String[] environment
public final String bindPorts
public final boolean bindAllPorts
public final Integer memoryLimit
public final Integer memorySwap
public final Integer cpuShares
public final boolean privileged
public final boolean tty
@DataBoundConstructor public DockerTemplateBase(String image, org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry, String dnsString, String network, String dockerCommand, String volumesString, String volumesFromString, String environmentsString, String lxcConfString, String hostname, Integer memoryLimit, Integer memorySwap, Integer cpuShares, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty, String macAddress)
protected Object readResolve()
public static List<String> splitAndFilterEmptyList(String s, String separator)
public void setImage(String image)
public String getImage()
public org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint getRegistry()
public String getDnsString()
@CheckForNull public String[] getVolumes()
public void setVolumes(String[] volumes)
public String getVolumesString()
@Deprecated public String getVolumesFrom()
getVolumesFrom2()public String[] getVolumesFrom2()
public void setVolumesFrom2(String[] volumes)
public void setVolumesFromString(String volumesFromString)
public String getVolumesFromString()
@CheckForNull public String getMacAddress()
public void setMacAddress(String macAddress)
public String getDisplayName()
public Integer getMemoryLimit()
public Integer getMemorySwap()
public Integer getCpuShares()
public String[] getDockerCommandArray()
public Iterable<com.github.dockerjava.api.model.PortBinding> getPortMappings()
public List<com.github.dockerjava.api.model.LxcConf> getLxcConf()
public String getEnvironmentsString()
@CheckForNull public List<String> getExtraHosts()
@DataBoundSetter public void setExtraHostsString(String extraHostsString)
public String getExtraHostsString()
public com.github.dockerjava.api.command.CreateContainerCmd fillContainerConfig(com.github.dockerjava.api.command.CreateContainerCmd containerConfig)
public hudson.model.Descriptor<DockerTemplateBase> getDescriptor()
getDescriptor in interface hudson.model.Describable<DockerTemplateBase>Copyright © 2016–2017. All rights reserved.