Package dev.snowdrop.buildpack.docker
Class VolumeUtils
java.lang.Object
dev.snowdrop.buildpack.docker.VolumeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddContentToVolume(com.github.dockerjava.api.DockerClient dc, String volumeName, String useImage, String prefix, int uid, int gid, List<ContainerEntry> entries) static booleanaddContentToVolume(com.github.dockerjava.api.DockerClient dc, String volumeName, String useImage, String pathInVolume, File content) static booleanaddContentToVolume(com.github.dockerjava.api.DockerClient dc, String volumeName, String useImage, String name, Integer mode, String content) static booleancreateVolumeIfRequired(com.github.dockerjava.api.DockerClient dc, String volumeName) static booleanstatic voidremoveVolume(com.github.dockerjava.api.DockerClient dc, String volumeName)
-
Constructor Details
-
VolumeUtils
public VolumeUtils()
-
-
Method Details
-
createVolumeIfRequired
public static boolean createVolumeIfRequired(com.github.dockerjava.api.DockerClient dc, String volumeName) -
exists
-
removeVolume
-
addContentToVolume
-
addContentToVolume
-
addContentToVolume
public static boolean addContentToVolume(com.github.dockerjava.api.DockerClient dc, String volumeName, String useImage, String prefix, int uid, int gid, List<ContainerEntry> entries)
-