public class JibSystemProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_TIMEOUT |
static java.lang.String |
SEND_CREDENTIALS_OVER_HTTP |
Modifier and Type | Method and Description |
---|---|
static boolean |
alwaysCacheBaseImage()
Gets whether to always cache base image layers.
|
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 |
useCrossRepositoryBlobMounts()
Gets whether or not to use cross-repository blob mounts when uploading image layers
(
mount/from ). |
public static final java.lang.String HTTP_TIMEOUT
public static final java.lang.String SEND_CREDENTIALS_OVER_HTTP
public static int getHttpTimeout()
jib.httpTimeout
system property. The default value is 20000 if the
system property is not set, and 0 indicates an infinite timeout.public static boolean useCrossRepositoryBlobMounts()
mount/from
). This is defined by the jib.blobMounts
system property.true
if mount/from
should be used, false
if not, defaulting to
true
public static boolean serializeExecution()
jibSerialize
system property.true
if Jib's execution should be serialized, false
if notpublic static boolean sendCredentialsOverHttp()
sendCredentialsOverHttp
system property.true
if authentication information is allowed to be sent over insecure
connections, false
if notpublic static boolean isUserAgentEnabled()
_JIB_DISABLE_USER_AGENT
system property.true
if the User-Agent header is enabled, false
if notpublic static boolean alwaysCacheBaseImage()
jib.alwaysCacheBaseImage
system property.always
; false otherwisepublic static void checkHttpTimeoutProperty() throws java.lang.NumberFormatException
jib.httpTimeout
system property for invalid (non-integer or negative)
values.java.lang.NumberFormatException
- if invalid valuespublic static void checkProxyPortProperty() throws java.lang.NumberFormatException
http.proxyPort
and https.proxyPort
system properties are in the
[0..65535] range when set.java.lang.NumberFormatException
- if invalid values