Search in sources :

Example 1 with TotalProgressPushListener

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

the class Builder method pushImage.

private void pushImage(ImageReference reference) throws IOException {
    Consumer<TotalProgressEvent> progressConsumer = this.log.pushingImage(reference);
    TotalProgressPushListener listener = new TotalProgressPushListener(progressConsumer);
    this.docker.image().push(reference, listener, getPublishAuthHeader());
    this.log.pushedImage(reference);
}
Also used : TotalProgressPushListener(org.springframework.boot.buildpack.platform.docker.TotalProgressPushListener) TotalProgressEvent(org.springframework.boot.buildpack.platform.docker.TotalProgressEvent)

Aggregations

TotalProgressEvent (org.springframework.boot.buildpack.platform.docker.TotalProgressEvent)1 TotalProgressPushListener (org.springframework.boot.buildpack.platform.docker.TotalProgressPushListener)1