All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.gradle.docker.tasks.DockerImagesTask Maven / Gradle / Ivy

package de.gesellix.gradle.docker.tasks;

import de.gesellix.docker.client.EngineResponseContent;
import de.gesellix.docker.remote.api.ImageSummary;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.TaskAction;

import javax.inject.Inject;
import java.util.List;

public class DockerImagesTask extends GenericDockerTask {

  private EngineResponseContent> images;

  @Internal
  public EngineResponseContent> getImages() {
    return images;
  }

  @Inject
  public DockerImagesTask(ObjectFactory objectFactory) {
    super(objectFactory);
    setDescription("List images");
  }

  @TaskAction
  public EngineResponseContent> images() {
    getLogger().info("docker images");
    return images = getDockerClient().images();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy