Class JibSystemProperties


  • public class JibSystemProperties
    extends java.lang.Object
    Names of system properties defined/used by Jib.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkHttpTimeoutProperty()
      Checks the jib.httpTimeout system property for invalid (non-integer or negative) values.
      static void checkProxyPortProperty()
      Checks if http.proxyPort and https.proxyPort system properties are in the [0..65535] range when set.
      static int getHttpTimeout()
      Gets the HTTP connection/read timeouts for registry interactions in milliseconds.
      static boolean isUserAgentEnabled()
      Gets whether or not to enable the User-Agent header.
      static boolean sendCredentialsOverHttp()
      Gets whether or not to allow sending authentication information over insecure HTTP connections.
      static boolean serializeExecution()
      Gets whether or not to serialize Jib's execution.
      static boolean skipExistingImages()
      Gets whether or not to skip pushing tags to existing images.
      static boolean useCrossRepositoryBlobMounts()
      Gets whether or not to use cross-repository blob mounts when uploading image layers (mount/from).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHttpTimeout

        public static int getHttpTimeout()
        Gets the HTTP connection/read timeouts for registry interactions in milliseconds. This is defined by the jib.httpTimeout system property. The default value is 20000 if the system property is not set, and 0 indicates an infinite timeout.
        Returns:
        the HTTP connection/read timeouts for registry interactions in milliseconds
      • useCrossRepositoryBlobMounts

        public static boolean useCrossRepositoryBlobMounts()
        Gets whether or not to use cross-repository blob mounts when uploading image layers (mount/from). This is defined by the jib.blobMounts system property.
        Returns:
        true if mount/from should be used, false if not, defaulting to true
      • serializeExecution

        public static boolean serializeExecution()
        Gets whether or not to serialize Jib's execution. This is defined by the jib.serialize system property.
        Returns:
        true if Jib's execution should be serialized, false if not
      • sendCredentialsOverHttp

        public static boolean sendCredentialsOverHttp()
        Gets whether or not to allow sending authentication information over insecure HTTP connections. This is defined by the sendCredentialsOverHttp system property.
        Returns:
        true if authentication information is allowed to be sent over insecure connections, false if not
      • isUserAgentEnabled

        public static boolean isUserAgentEnabled()
        Gets whether or not to enable the User-Agent header. This is defined by the _JIB_DISABLE_USER_AGENT system property.
        Returns:
        true if the User-Agent header is enabled, false if not
      • checkHttpTimeoutProperty

        public static void checkHttpTimeoutProperty()
                                             throws java.lang.NumberFormatException
        Checks the jib.httpTimeout system property for invalid (non-integer or negative) values.
        Throws:
        java.lang.NumberFormatException - if invalid values
      • checkProxyPortProperty

        public static void checkProxyPortProperty()
                                           throws java.lang.NumberFormatException
        Checks if http.proxyPort and https.proxyPort system properties are in the [0..65535] range when set.
        Throws:
        java.lang.NumberFormatException - if invalid values
      • skipExistingImages

        public static boolean skipExistingImages()
        Gets whether or not to skip pushing tags to existing images. This is defined by the jib.skipExistingImages system property.
        Returns:
        true if Jib should skip pushing tags to existing images, false if not