Search in sources :

Example 1 with Layer

use of org.springframework.boot.buildpack.platform.docker.type.Layer in project spring-boot by spring-projects.

the class ImageAssert method getLayers.

private void getLayers() throws IOException {
    new DockerApi().image().exportLayers(this.actual, (id, tarArchive) -> {
        Layer layer = Layer.fromTarArchive(tarArchive);
        this.layers.put(layer.getId().toString(), layer);
    });
}
Also used : DockerApi(org.springframework.boot.buildpack.platform.docker.DockerApi) Layer(org.springframework.boot.buildpack.platform.docker.type.Layer)

Aggregations

DockerApi (org.springframework.boot.buildpack.platform.docker.DockerApi)1 Layer (org.springframework.boot.buildpack.platform.docker.type.Layer)1