Reputation: 29
i am trying to create a image of jboss/wildfly that can be used for war deployment, Below is that docker file i am using for creating image.
But when i run the container with "docker run -p 9990:9990 hello" command jboss server is staring but the war palced in deployment folder is not deploying.
docker file
FROM jboss/wildfly
ADD standalone-full-poc.xml /opt/jboss/wildfly/standalone/configuration/
ADD modules /opt/jboss/wildfly/modules/
RUN /opt/jboss/wildfly/bin/add-user.sh admin admin@123 --silent
ADD eTransfer.war /opt/jboss/wildfly/standalone/deployments/
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-c", "standalone-full-poc.xml", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
Upvotes: 3
Views: 2124
Reputation: 29
Issue resolved: It was happening due to not adding Deployment Scanner in standalone-full-poc.xml:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0"> <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" /></subsystem>
Upvotes: -1