Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleContainerTools/jib
/ functions
Functions
4,110 in github.com/GoogleContainerTools/jib
⨍
Functions
4,110
◇
Types & classes
720
↓ 2 callers
Method
setEntrypoint
Sets the container entrypoint. This is the beginning of the command that is run when the container starts. {@link #setCmd} sets additional tokens. {@c
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:306
↓ 2 callers
Method
setEnvironment
Sets the container environment. These environment variables are available to the program launched by the container entrypoint command. This replaces a
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:147
↓ 2 callers
Method
setExcludes
Sets excludes. {@code excludes} can be any suitable object describing file paths convertible by {@link Project#files} (such as {@link File}, {@code Li
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/skaffold/SkaffoldSyncParameters.java:55
↓ 2 callers
Method
setExposedPorts
Sets the ports to expose from the container. Ports exposed will allow ingress traffic. This replaces any previously-set exposed ports. Note that these
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:238
↓ 2 callers
Method
setFormat
Sets the format to build the container image as. Use {@link ImageFormat#Docker} for Docker V2.2 or {@link ImageFormat#OCI} for OCI. @param format the
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:129
↓ 2 callers
Method
setFormat
(ImageFormat format)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java:193
↓ 2 callers
Method
setHelper
(@Nullable String helper)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java:181
↓ 2 callers
Method
setImage
(@Nullable String image)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldInitOutput.java:70
↓ 2 callers
Method
setInferredCredential
Sets the inferred {@link Credential} to use in the default credential retrievers. @param inferredCredential the inferred credential @param credential
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/DefaultCredentialRetrievers.java:130
↓ 2 callers
Method
setLabels
Sets the labels for the container. This replaces any previously-set labels. Note that these values are added to the base image values. <p>This is sim
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:204
↓ 2 callers
Method
setLayers
(List<? extends LayerObject> layer)
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:346
↓ 2 callers
Method
setMediaType
(String mediaType)
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/V22ManifestListTemplate.java:156
↓ 2 callers
Method
setName
(String name)
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PreparedLayer.java:47
↓ 2 callers
Method
setOs
(String os)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/PlatformParameters.java:57
↓ 2 callers
Method
setProgramArguments
Sets the container entrypoint program arguments. These are additional tokens added to the end of the entrypoint command. <p>This is similar to <a hre
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:317
↓ 2 callers
Method
setProject
(@Nullable String project)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldInitOutput.java:74
↓ 2 callers
Method
setProperties
(Map<String, String> properties)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtensionParameters.java:55
↓ 2 callers
Method
setRegistryMirrors
Sets the registry mirrors. @param registryMirrors registry mirrors @return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/BuildContext.java:282
↓ 2 callers
Method
setResourcesDestination
Sets the destination directory of the resources added to the container (relative to the app root). @param resourcesDestination the path to the resour
jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java:260
↓ 2 callers
Method
setTarPath
Sets the path for tarball base images. @param tarPath the path @return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ImageConfiguration.java:73
↓ 2 callers
Method
setToMap
Turns a set into a sorted map where each element of the set is mapped to an entry composed by the key generated with {@code Function<E, String> elemen
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java:105
↓ 2 callers
Method
setUpAuthServerAndRegistry
Sets up an auth server and a registry. The auth server can return a bearer token up to {@code maxAuthTokens} times. The registry will initially return
jib-core/src/test/java/com/google/cloud/tools/jib/registry/RegistryClientTest.java:390
↓ 2 callers
Method
setUpMocks
( HttpTransport mockHttpTransport, HttpRequestFactory mockHttpRequestFactory, HttpRequest mo
jib-core/src/test/java/com/google/cloud/tools/jib/http/FailoverHttpClientTest.java:452
↓ 2 callers
Method
setUpWithStrings
Creates a TarStreamBuilder using Strings.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:177
↓ 2 callers
Method
setUpWithStringsAndTarEntries
Creates a TarStreamBuilder using Strings and TarArchiveEntries.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:189
↓ 2 callers
Method
setUpWithTarEntries
Creates a TarStreamBuilder using TarArchiveEntries.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:164
↓ 2 callers
Method
setUpWorkingRegistryClientFactoryWithV22ManifestList
()
jib-core/src/test/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStepTest.java:696
↓ 2 callers
Method
setUpWorkingRegistryClientFactoryWithV22ManifestTemplate
()
jib-core/src/test/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStepTest.java:674
↓ 2 callers
Method
setUser
Sets the user and group to run the container as. {@code user} can be a username or UID along with an optional groupname or GID. <p>The following are
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:564
↓ 2 callers
Method
setUser
Sets the user and group to run the container as. {@code user} can be a username or UID along with an optional groupname or GID. {@code null} signals t
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:275
↓ 2 callers
Method
setUser
(String user)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java:266
↓ 2 callers
Method
setUserAgent
Sets the value of {@code User-Agent} in headers for registry requests. @param userAgent user agent string @return this
jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryClient.java:95
↓ 2 callers
Method
setVolumes
Sets the directories that may hold externally mounted volumes. Note that these values are added to the base image values. <p>This is similar to <a hr
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:176
↓ 2 callers
Method
setWorkingDirectory
Sets the working directory in the container. @param workingDirectory the working directory @return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:576
↓ 2 callers
Method
setWorkingDirectory
Sets the working directory in the container. {@code null} signals to use the base image value. @param workingDirectory the working directory @return
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:287
↓ 2 callers
Method
setupCachedMetadataV21
(Path cacheDirectory)
jib-core/src/test/java/com/google/cloud/tools/jib/cache/CacheStorageReaderTest.java:62
↓ 2 callers
Method
sizeOf
Gets the size of {@code blob}. @param blob the {@link Blob} @return the size (in bytes) of {@code blob} @throws IOException if an I/O exception occur
jib-core/src/test/java/com/google/cloud/tools/jib/cache/CacheTest.java:94
↓ 2 callers
Method
stop
Stops the registry.
jib-core/src/integration-test/java/com/google/cloud/tools/jib/registry/LocalRegistry.java:115
↓ 2 callers
Method
subTimer
Creates a new {@link TimerEventDispatcher} with its parent timer as this. @param description a new description @return the new {@link TimerEventDispa
jib-core/src/main/java/com/google/cloud/tools/jib/builder/TimerEventDispatcher.java:66
↓ 2 callers
Method
testGetManifest
Tests translation of image to {@link BuildableManifestTemplate}.
jib-core/src/test/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslatorTest.java:175
↓ 2 callers
Method
testToImage_buildable
( String jsonFilename, Class<T> manifestTemplateClass)
jib-core/src/test/java/com/google/cloud/tools/jib/image/json/JsonToImageTranslatorTest.java:191
↓ 2 callers
Method
toBuildContext
( JibContainerBuilder jibContainerBuilder, Containerizer containerizer)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/api/JibContainerBuilderTestHelper.java:24
↓ 2 callers
Method
toLayers
Convert a layer spec to a list of layer objects. <p>Does not handle missing directories for files added via this method. We can either prefill direct
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java:56
↓ 2 callers
Method
toSortedJsonTemplates
Converts a list of {@link FileEntry}s into a list of {@link LayerEntryTemplate}. The list is sorted by source file first, then extraction path (see {@
jib-core/src/main/java/com/google/cloud/tools/jib/cache/LayerEntriesSelector.java:148
↓ 2 callers
Method
toString
Return the HTTP {@link Authorization} header value.
jib-core/src/main/java/com/google/cloud/tools/jib/http/Authorization.java:72
↓ 2 callers
Method
toString
Stringifies the {@link ImageReference}. @return the image reference in Docker-readable format (inverse of {@link #parse})
jib-core/src/main/java/com/google/cloud/tools/jib/api/ImageReference.java:371
↓ 2 callers
Method
toString
Returns the string form of the absolute Unix-style path. @return the string form
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/AbsoluteUnixPath.java:133
↓ 2 callers
Method
truncateToMaxWidth
Makes sure each line of text in {@code lines} is at most {@link #MAX_FOOTER_WIDTH} characters long. If a line of text exceeds {@link #MAX_FOOTER_WIDTH
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/logging/AnsiLoggerWithFooter.java:63
↓ 2 callers
Method
updateProperties
()
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/FilePropertiesStack.java:71
↓ 2 callers
Method
verifyBuildAndRun
(TestProject project, String label, String gradleBuildFile)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/WarProjectIntegrationTest.java:55
↓ 2 callers
Method
verifyParent
Verifies that the {@code timerEvent}'s timer has parent {@code expectedParentTimer}. @param timerEvent the {@link TimerEvent} to verify @param expect
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:105
↓ 2 callers
Method
verifyStartState
Verifies that the {@code timerEvent}'s state is {@link State#START}. @param timerEvent the {@link TimerEvent} to verify
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:115
↓ 2 callers
Method
verifyStateFirstLap
Verifies that the {@code timerEvent}'s state is {@code expectedState} and that this is the first lap for the timer. @param timerEvent the {@link Time
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:128
↓ 2 callers
Method
verifyTarArchive
Helper method to verify that the files were archived correctly by reading {@code tarArchiveInputStream}.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:232
↓ 2 callers
Method
verifyThrowsRegistryUnauthorizedException
Verifies that a response with {@code httpStatusCode} throws {@link RegistryUnauthorizedException}.
jib-core/src/test/java/com/google/cloud/tools/jib/registry/RegistryEndpointCallerTest.java:456
↓ 2 callers
Method
verifyUnzip
(Path destination)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/ZipUtilTest.java:132
↓ 2 callers
Method
verifyZipSlipSafe
(Path archive)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/ZipUtilTest.java:148
↓ 2 callers
Method
volumesSetToMap
Converts a set of {@link AbsoluteUnixPath}s to the corresponding container config format for volumes (e.g. {@code AbsoluteUnixPath().get("/var/log/my-
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java:64
↓ 2 callers
Method
writeCompressedLayer
Saves a cache entry with a compressed layer {@link Blob}. Use {@link #writeUncompressedLayer(Blob, ImmutableList)} to save a cache entry with an uncom
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java:130
↓ 2 callers
Method
writeJsonTemplate
Writes a json template to the destination path by writing to a temporary file then moving the file. @param jsonTemplate the json template @param dest
jib-core/src/main/java/com/google/cloud/tools/jib/cache/CacheStorageWriter.java:181
↓ 2 callers
Method
writeLocalConfig
Writes a container configuration to {@code (cache directory)/local/config/(image id)}. An image ID is a SHA hash of a container configuration JSON. Th
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java:176
↓ 2 callers
Method
writeTo
Writes image tar bar in configured {@link Image#getImageFormat()} of OCI or Docker to output stream. @param out the target output stream @throws IOEx
jib-core/src/main/java/com/google/cloud/tools/jib/image/ImageTarball.java:80
↓ 2 callers
Method
writeTo
(OutputStream outputStream)
jib-core/src/main/java/com/google/cloud/tools/jib/http/BlobHttpContent.java:65
↓ 2 callers
Method
writeTo
(OutputStream outputStream)
jib-core/src/main/java/com/google/cloud/tools/jib/hash/WritableContents.java:31
↓ 2 callers
Method
writeUncompressed
Writes an uncompressed {@link Blob} out to the cache directory. <p>Cache is written out in the form: <ul> <li>The {@code uncompressedLayerBlob} is
jib-core/src/main/java/com/google/cloud/tools/jib/cache/CacheStorageWriter.java:268
↓ 1 callers
Method
addExposedPort
Adds a port to expose from the container. @param port the port to expose @return this @see #setExposedPorts(Set)
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:445
↓ 1 callers
Method
addGenerated
Add a layer entry as a "generated" sync entry. Generated sync entries require rebuilds before files can be sync'd to a running container. @param laye
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldSyncMapTemplate.java:107
↓ 1 callers
Method
addSettingsFile
Adds the settings.gradle file for a project. <p>Uses reflection to call getSettingsFile() for compatibility with both Gradle 6 and 9 (getSettingsFile
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/skaffold/FilesTaskV2.java:159
↓ 1 callers
Method
applyConfiguration
( Containerizer containerizer, CommonCliOptions commonCliOptions, CacheDirectories cacheDire
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Containerizers.java:93
↓ 1 callers
Method
applyHandlers
(Containerizer containerizer, ConsoleLogger consoleLogger)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Containerizers.java:116
↓ 1 callers
Method
assertDockerInspect
Asserts that the test project has the required exposed ports, labels and volumes. @param imageReference the image to test @throws IOException if the
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/DefaultTargetProjectIntegrationTest.java:42
↓ 1 callers
Method
assertMessageCorrect
(String name)
jib-core/src/test/java/com/google/cloud/tools/jib/event/EventHandlersTest.java:42
↓ 1 callers
Method
build
Builds and returns the layer {@link Blob}. @return the new layer @throws IOException if an I/O error occurs
jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java:160
↓ 1 callers
Method
build
Builds a new {@link BuildContext} using the parameters passed into the builder. @return the corresponding build context @throws CacheDirectoryCreatio
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/BuildContext.java:293
↓ 1 callers
Method
build
()
jib-core/src/main/java/com/google/cloud/tools/jib/event/EventHandlers.java:52
↓ 1 callers
Method
buildAndRunAdditionalTag
( Path projectRoot, String imageReference, String additionalTag)
jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildImageMojoIntegrationTest.java:198
↓ 1 callers
Method
buildAndRunAdditionalTag
( TestProject testProject, String imageReference, String additionalTag, String expectedOutput)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/JibRunHelper.java:90
↓ 1 callers
Method
buildAndRunWebApp
(String label, String gradleBuildFile)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SpringBootProjectIntegrationTest.java:65
↓ 1 callers
Method
buildEventHandlers
()
jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java:372
↓ 1 callers
Method
buildImage
( Image baseImage, List<Future<PreparedLayer>> baseLayers, ProgressEventDispatcher.Factory p
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/StepsRunner.java:443
↓ 1 callers
Method
buildLogMessage
Builds the log message for a {@link TimerEvent}, based on its state and duration. @param timerEvent the {@link TimerEvent} @return the built log mess
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/TimerEventHandler.java:48
↓ 1 callers
Method
capitalizeFirstLetter
(String string)
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:71
↓ 1 callers
Method
check
(DescriptorDigest digest)
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ObtainBaseImageLayerStep.java:47
↓ 1 callers
Method
checkGradleVersion
()
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java:56
↓ 1 callers
Method
checkJibVersion
Check the Jib version matches the required version (if specified).
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java:70
↓ 1 callers
Method
close
Releases the lock file.
jib-core/src/main/java/com/google/cloud/tools/jib/filesystem/LockFile.java:79
↓ 1 callers
Method
close
()
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ThrottledProgressEventDispatcherWrapper.java:52
↓ 1 callers
Method
collectExtraDirectories
(MavenProject project)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/FilesMojoV2.java:227
↓ 1 callers
Method
collectWatchParameters
(MavenProject project)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/FilesMojoV2.java:268
↓ 1 callers
Method
compressAndCacheTarLayer
( Cache cache, DescriptorDigest diffId, Path layerFile, boolean layersAreCompressed,
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/LocalBaseImageSteps.java:279
↓ 1 callers
Method
computeEntrypoint
Computes the image entrypoint. If {@link ContainerConfiguration#getEntrypoint()} is null, the entrypoint is inherited from the base image. Otherwise {
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/BuildImageStep.java:164
↓ 1 callers
Method
computeEntrypoint
( CommonContainerConfigCliOptions commonContainerConfigCliOptions)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/war/WarFiles.java:75
↓ 1 callers
Method
computeEntrypoint
(List<String> jvmFlags)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/war/StandardWarExplodedProcessor.java:120
↓ 1 callers
Method
computeProgramArguments
Computes the image program arguments. If {@link ContainerConfiguration#getEntrypoint()} and {@link ContainerConfiguration#getProgramArguments()} are n
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/BuildImageStep.java:198
↓ 1 callers
Method
computeReturn
(ManifestAndDigest<T> manifestAndDigest)
jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java:106
↓ 1 callers
Method
configureContainerizer
Configures a {@link Containerizer} with values pulled from project properties/raw build configuration. @param containerizer the {@link Containerizer}
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java:1041
↓ 1 callers
Method
configureEventHandlers
(Containerizer containerizer)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/ProjectProperties.java:45
↓ 1 callers
Method
convertPermissionsList
Converts a list of {@link PermissionConfiguration} to an equivalent {@code String->FilePermission} map. @param permissionList the list to convert @re
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MojoCommon.java:136
↓ 1 callers
Method
convertToExtraDirectoryParametersList
Helper method to convert {@code Object} to {@code List<ExtraDirectoryParameters>} in {@code setFrom}.
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtraDirectoriesParameters.java:116
↓ 1 callers
Method
copyProject
()
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/TestProject.java:66
← previous
next →
1,301–1,400 of 4,110, ranked by callers