mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: DockerManager interface
parent
1fab774397
commit
4d909d64c6
|
@ -0,0 +1,26 @@
|
|||
package io.openvidu.server.utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.github.dockerjava.api.model.Bind;
|
||||
import com.github.dockerjava.api.model.Volume;
|
||||
|
||||
public interface DockerManager {
|
||||
|
||||
public DockerManager init();
|
||||
|
||||
public String runContainer(String image, String containerName, String user, List<Volume> volumes, List<Bind> binds,
|
||||
String networkMode, List<String> envs, List<String> command, Long shmSize, boolean privileged,
|
||||
Map<String, String> labels) throws Exception;
|
||||
|
||||
public void removeContainer(String containerId, boolean force);
|
||||
|
||||
public void runCommandInContainerSync(String containerId, String command, int secondsOfWait) throws IOException;
|
||||
|
||||
public void runCommandInContainerAsync(String containerId, String command) throws IOException;
|
||||
|
||||
public void waitForContainerStopped(String containerId, int secondsOfWait) throws Exception;
|
||||
|
||||
}
|
Loading…
Reference in New Issue