|
@@ -6,6 +6,7 @@ import cn.reghao.bnt.common.docker.po.ImageInfo;
|
|
|
import com.github.dockerjava.api.command.InspectContainerResponse;
|
|
import com.github.dockerjava.api.command.InspectContainerResponse;
|
|
|
import com.github.dockerjava.api.model.Container;
|
|
import com.github.dockerjava.api.model.Container;
|
|
|
import com.github.dockerjava.api.model.Image;
|
|
import com.github.dockerjava.api.model.Image;
|
|
|
|
|
+import com.github.dockerjava.api.model.Version;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -16,6 +17,8 @@ import java.util.List;
|
|
|
* @date 2021-10-27 04:17:38
|
|
* @date 2021-10-27 04:17:38
|
|
|
*/
|
|
*/
|
|
|
public interface Docker {
|
|
public interface Docker {
|
|
|
|
|
+ void auth();
|
|
|
|
|
+ Version version();
|
|
|
void build(String repoTag, String compileHome, String dockerfileContent) throws Exception;
|
|
void build(String repoTag, String compileHome, String dockerfileContent) throws Exception;
|
|
|
void build(String repoTag, String compileHome) throws Exception;
|
|
void build(String repoTag, String compileHome) throws Exception;
|
|
|
void push(String image) throws Exception;
|
|
void push(String image) throws Exception;
|