Processing math: 100%

User Tools

Site Tools


tanszek:oktatas:informacios_rendszerek_integralasa:wildfly_in_docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tanszek:oktatas:informacios_rendszerek_integralasa:wildfly_in_docker [2023/05/04 11:39] kneheztanszek:oktatas:informacios_rendszerek_integralasa:wildfly_in_docker [2023/05/04 12:03] (current) knehez
Line 84: Line 84:
 EXAMPLE_FOLDER=helloworld EXAMPLE_FOLDER=helloworld
 </code> </code>
 +
 +Készítsünk egy Dockerfile-t az alábbi tartalommal:
 +
 +<code>
 +FROM quay.io/wildfly/wildfly
 +ADD ./EXAMPLEFOLDER/target/EXAMPLE_FOLDER.war /opt/jboss/wildfly/standalone/deployments
 +</code>
 +
  
 A //docker-compose.yml// az alábbi lesz: A //docker-compose.yml// az alábbi lesz:
Line 97: Line 105:
         command: mvn clean install         command: mvn clean install
     wildfly:     wildfly:
-        imagequay.io/wildfly/wildfly +        build: . 
-        copy+        environment
-          ./${EXAMPLE_FOLDER}/target/EXAMPLEFOLDER.war:/opt/jboss/wildfly/standalone/deployments/{EXAMPLE_FOLDER}.war+            "EXAMPLE_FOLDER=helloworld"
         ports:         ports:
           - 8080:8080           - 8080:8080
         depends_on:         depends_on:
           - compiler           - compiler
-                  +               
 </code> </code>
  
tanszek/oktatas/informacios_rendszerek_integralasa/wildfly_in_docker.1683200393.txt.gz · Last modified: 2023/05/04 11:39 by knehez