无法使用docker文件部署war jboss / wildfly

时间:2017-12-20 07:23:34

标签: docker dockerfile jboss-wildfly-11

我正在尝试创建可用于战争部署的jboss / wildfly图像,下面是我用于创建图像的docker文件。

但是当我用&#34运行容器时,docker运行-p 9990:9990 hello"命令jboss服务器正在盯着但部署文件夹中的战争没有部署。

docker file

FROM jboss / wildfly

允许自定义外部配置

ADD standalone-full-poc.xml / opt / jboss / wildfly / standalone / configuration /

ADD模块/ opt / jboss / wildfly / modules /

创建EAP用户

RUN /opt/jboss/wildfly/bin/add-user.sh admin admin @ 123 --silent

将eTransfer war添加到Deployment文件夹

ADD eTransfer.war / opt / jboss / wildfly / standalone / deployments /

启动Jboss EAP

CMD [" /opt/jboss/wildfly/bin/standalone.sh" ;," -c"," standalone-full-poc.xml", " -b"," 0.0.0.0"," -bmanagement"," 0.0.0.0"]

1 个答案:

答案 0 :(得分:0)

问题已解决:)由于未在standalone-full-poc.xml

中添加Deployment Scanner而发生了这种情况