在 Liberty Docker 中重新部署 Liberty .war 应用程序 运行
Redeploying a Liberty .war app running in Liberty Docker
我正在使用 Liberty Docker 版本来测试 BlueMix 中 Liberty 样板的替代方案:https://hub.docker.com/_/websphere-liberty/
创建图像是一个缓慢的过程。我想知道是否有推荐的方法来重新部署应用程序 war。目前我每次在应用程序中进行更改时都必须重新创建 docker 文件。
该应用与一些共享库、bootstrap.properties 文件、...
一起部署在 /config/apps/ 目录中
您真的看过该页面上的 Usage
部分吗?
在第1)点中描述:
A .WAR file can therefore be mounted in the dropins directory of this
server and run. The following example starts a container in the
background running a .WAR file from the host file system
$ docker run -d -p 80:9080 -p 443:9443 \
-v /tmp/DefaultServletEngine/dropins/Sample1.war:/config/dropins/Sample1.war \
websphere-liberty:webProfile7
这应该允许您动态更新应用程序而无需重建映像。
您还有其他示例显示如何挂载整个配置文件夹。
我正在使用 Liberty Docker 版本来测试 BlueMix 中 Liberty 样板的替代方案:https://hub.docker.com/_/websphere-liberty/
创建图像是一个缓慢的过程。我想知道是否有推荐的方法来重新部署应用程序 war。目前我每次在应用程序中进行更改时都必须重新创建 docker 文件。
该应用与一些共享库、bootstrap.properties 文件、...
一起部署在 /config/apps/ 目录中您真的看过该页面上的 Usage
部分吗?
在第1)点中描述:
A .WAR file can therefore be mounted in the dropins directory of this server and run. The following example starts a container in the background running a .WAR file from the host file system
$ docker run -d -p 80:9080 -p 443:9443 \
-v /tmp/DefaultServletEngine/dropins/Sample1.war:/config/dropins/Sample1.war \
websphere-liberty:webProfile7
这应该允许您动态更新应用程序而无需重建映像。
您还有其他示例显示如何挂载整个配置文件夹。