dockerfile-maven-plugin 插件将本地镜像推送到远程仓库
Dockerfile Maven
Build Status Maven Central License
This is a Maven plugin helps Maven integrate with Docker.
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。The design goals are:
Don't do anything fancy. Dockerfiles are how you build Docker projects; that's what this plugin uses. They are mandatory.
Make the Docker build process integrate with the Maven build process. If you bind the default phases, when you type mvn package, you get a Docker image. When you type mvn deploy, your image gets pushed.
Make the goals remember what you are doing. You can type mvn dockerfile:build and later mvn dockerfile:tag and later mvn dockerfile:push without problems. This also eliminates the need for something like mvn dockerfile:build -DalsoPush; instead you can just say mvn dockerfile:build dockerfile:push.
Integrate with the Maven build reactor. You can depend on the Docker image of one project in another project, and Maven will build the projects in the correct order. This is useful when you want to run integration tests involving multiple services.
This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.
See the changelog for a list of releases
这是一个Maven插件,可以帮助Maven与Docker集成。
设计目标是:
不要做任何花哨的事情。 Dockerfile你是如何构建Docker项目的; 这是这个插件使用的。它们是强制性的。
使Docker构建过程与Maven构建过程集成。如果绑定默认阶段,则在键入时mvn package,将获得Docker镜像。键入时mvn deploy,图像会被推送。
让目标记住你在做什么。您可以输入mvn dockerfile:build以及稍后mvn dockerfile:tag和之后mvn dockerfile:push没有问题。这也消除了对类似物的需要mvn dockerfile:build -DalsoPush; 相反,你可以说mvn dockerfile:build dockerfile:push。
与Maven构建反应器集成。您可以依赖另一个项目中一个项目的Docker镜像,Maven将以正确的顺序构建项目。当您想要运行涉及多个服务的集成测试时,这非常有用。
