public class JibSystemProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_TIMEOUT |
static 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 String HTTP_TIMEOUT
public static final 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
truepublic 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 NumberFormatException
jib.httpTimeout system property for invalid (non-integer or negative)
values.NumberFormatException - if invalid valuespublic static void checkProxyPortProperty()
throws NumberFormatException
http.proxyPort and https.proxyPort system properties are in the
[0..65535] range when set.NumberFormatException - if invalid valuesCopyright © 2019. All rights reserved.