Class DockerTemplate

    • Field Detail

      • DEFAULT_STOP_TIMEOUT

        public static final int DEFAULT_STOP_TIMEOUT
        The default timeout in seconds (10s) to wait during container shutdown until it will be forcefully terminated.
        See Also:
        Constant Field Values
      • remoteFs

        @CheckForNull
        public String remoteFs
      • instanceCap

        public final int instanceCap
    • Method Detail

      • getImage

        public String getImage()
      • getDnsString

        public String getDnsString()
      • getDnsSearchString

        public String getDnsSearchString()
      • getMounts

        @CheckForNull
        public String[] getMounts()
      • getMountsString

        public String getMountsString()
      • getVolumesFrom2

        public String[] getVolumesFrom2()
      • getVolumesFromString

        public String getVolumesFromString()
      • getMacAddress

        @CheckForNull
        public String getMacAddress()
      • getDisplayName

        public String getDisplayName()
      • getMemoryLimit

        public Integer getMemoryLimit()
      • getMemorySwap

        public Integer getMemorySwap()
      • getCgroupParent

        public String getCgroupParent()
      • getCpus

        public String getCpus()
      • getCpuPeriod

        public Long getCpuPeriod()
      • getCpuQuota

        public Long getCpuQuota()
      • getCpuShares

        public Integer getCpuShares()
      • getShmSize

        public Integer getShmSize()
      • getDockerCommandArray

        public String[] getDockerCommandArray()
      • getPortMappings

        public Iterable<com.github.dockerjava.api.model.PortBinding> getPortMappings()
      • getEnvironmentsString

        public String getEnvironmentsString()
      • getExtraHosts

        @CheckForNull
        public List<String> getExtraHosts()
      • getExtraHostsString

        public String getExtraHostsString()
      • getSecurityOpts

        @CheckForNull
        public List<String> getSecurityOpts()
      • getSecurityOptsString

        public String getSecurityOptsString()
      • getCapabilitiesToAdd

        @CheckForNull
        public List<String> getCapabilitiesToAdd()
      • getCapabilitiesToAddString

        public String getCapabilitiesToAddString()
      • getCapabilitiesToDrop

        @CheckForNull
        public List<String> getCapabilitiesToDrop()
      • getCapabilitiesToDropString

        public String getCapabilitiesToDropString()
      • getRegistry

        public org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint getRegistry()
      • fillContainerConfig

        public com.github.dockerjava.api.command.CreateContainerCmd fillContainerConfig​(com.github.dockerjava.api.command.CreateContainerCmd containerConfig)
      • setNodeNameInContainerConfig

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static void setNodeNameInContainerConfig​(com.github.dockerjava.api.command.CreateContainerCmd containerConfig,
                                                        String nodeName)
      • getFullImageId

        public String getFullImageId()
      • isRemoveVolumes

        public boolean isRemoveVolumes()
      • setRemoveVolumes

        @DataBoundSetter
        public void setRemoveVolumes​(boolean removeVolumes)
      • getStopTimeout

        public int getStopTimeout()
      • setStopTimeout

        @DataBoundSetter
        public void setStopTimeout​(int timeout)
      • getLabelString

        @CheckForNull
        public String getLabelString()
      • setMode

        @DataBoundSetter
        public void setMode​(Node.Mode mode)
      • getNumExecutors

        public int getNumExecutors()
      • getRemoteFs

        @CheckForNull
        public String getRemoteFs()
      • setRemoteFs

        @DataBoundSetter
        public void setRemoteFs​(String remoteFs)
      • getInstanceCapStr

        public String getInstanceCapStr()
      • getInstanceCap

        public int getInstanceCap()
      • getLabelSet

        @NonNull
        public Set<LabelAtom> getLabelSet()
      • getPullTimeout

        public int getPullTimeout()
      • setPullTimeout

        @DataBoundSetter
        public void setPullTimeout​(int pullTimeout)
      • getNodeProperties

        @CheckForNull
        public List<? extends NodeProperty<?>> getNodeProperties()
      • setNodeProperties

        @DataBoundSetter
        public void setNodeProperties​(List<? extends NodeProperty<?>> nodeProperties)
      • setDisabled

        @DataBoundSetter
        public void setDisabled​(DockerDisabled disabled)
      • setName

        @DataBoundSetter
        public void setName​(String name)
      • getName

        @NonNull
        public String getName()
      • readResolve

        protected Object readResolve()
        Initializes data structure that we don't persist.
        Returns:
        this, but populated
      • cloneWithLabel

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public DockerTemplate cloneWithLabel​(String label)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getShortDescription

        public String getShortDescription()