public class JavaContainerBuilderHelper extends Object
JavaContainerBuilder-based JibContainerBuilders.| Modifier and Type | Method and Description |
|---|---|
static LayerConfiguration |
extraDirectoryLayerConfiguration(Path extraDirectory,
Map<AbsoluteUnixPath,FilePermissions> extraDirectoryPermissions)
Returns a
LayerConfiguration for adding the extra directory to the container. |
static JibContainerBuilder |
fromExplodedWar(RegistryImage baseImage,
Path explodedWar,
AbsoluteUnixPath appRoot)
Constructs a new
JibContainerBuilder for a WAR project. |
public static LayerConfiguration extraDirectoryLayerConfiguration(Path extraDirectory, Map<AbsoluteUnixPath,FilePermissions> extraDirectoryPermissions) throws IOException
LayerConfiguration for adding the extra directory to the container.extraDirectory - the source extra directory pathextraDirectoryPermissions - map from path on container to file permissionsLayerConfiguration for adding the extra directory to the containerIOException - if walking the extra directory failspublic static JibContainerBuilder fromExplodedWar(RegistryImage baseImage, Path explodedWar, AbsoluteUnixPath appRoot) throws IOException
JibContainerBuilder for a WAR project.baseImage - the base image of the containerexplodedWar - the exploded WAR directoryappRoot - root directory in the image where the app will be placedJibContainerBuilder containing the layers for the exploded WARIOException - if adding layer contents failsCopyright © 2019. All rights reserved.