Class ReproducibleLayerBuilder


  • public class ReproducibleLayerBuilder
    extends java.lang.Object
    Builds a reproducible layer Blob from files. The reproducibility is implemented by strips out all non-reproducible elements (modification time, group ID, user ID, user name, and group name) from name-sorted tar archive entries.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReproducibleLayerBuilder​(com.google.common.collect.ImmutableList<com.google.cloud.tools.jib.api.buildplan.FileEntry> layerEntries)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Blob build()
      Builds and returns the layer Blob.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReproducibleLayerBuilder

        public ReproducibleLayerBuilder​(com.google.common.collect.ImmutableList<com.google.cloud.tools.jib.api.buildplan.FileEntry> layerEntries)
    • Method Detail

      • build

        public Blob build()
                   throws java.io.IOException
        Builds and returns the layer Blob.
        Returns:
        the new layer
        Throws:
        java.io.IOException - if an I/O error occurs