Class ContainerBuilderHelper


  • final class ContainerBuilderHelper
    extends Object
    Copied almost verbatim from Jib's com.google.cloud.tools.jib.plugins.common.JavaContainerBuilderHelper because the module that contains it is internal to Jib
    • Method Detail

      • extraDirectoryLayerConfiguration

        public static com.google.cloud.tools.jib.api.buildplan.FileEntriesLayer extraDirectoryLayerConfiguration​(Path sourceDirectory,
                                                                                                                 com.google.cloud.tools.jib.api.buildplan.AbsoluteUnixPath targetDirectory,
                                                                                                                 Map<String,​com.google.cloud.tools.jib.api.buildplan.FilePermissions> extraDirectoryPermissions,
                                                                                                                 BiFunction<Path,​com.google.cloud.tools.jib.api.buildplan.AbsoluteUnixPath,​Instant> modificationTimeProvider)
                                                                                                          throws IOException
        Returns a FileEntriesLayer for adding the extra directory to the container.
        Parameters:
        sourceDirectory - the source extra directory path
        targetDirectory - the root directory on the container to place the files in
        extraDirectoryPermissions - map from path on container to file permissions
        modificationTimeProvider - file modification time provider
        Returns:
        a FileEntriesLayer for adding the extra directory to the container
        Throws:
        IOException - if walking the extra directory fails