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

com.bmuschko.gradle.docker.tasks.image.DockerLoadImage.groovy Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
package com.bmuschko.gradle.docker.tasks.image

import com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.Input

class DockerLoadImage extends AbstractDockerRemoteApiTask {

    @Input
    final RegularFileProperty imageFile = newOutputFile()

    @Override
    void runRemoteCommand(dockerClient) {
        dockerClient.loadImageCmd(new FileInputStream(imageFile.get().asFile)).exec()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy