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:10] 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 ./$EXAMPLE_FOLDER/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 93: Line 101:
         image: maven:3.8.7-openjdk-18-slim         image: maven:3.8.7-openjdk-18-slim
         volumes:         volumes:
-            - ./${EXAMPLE_FOLDER}:/usr/src/${FOLDER_NAME+            - ./${EXAMPLE_FOLDER}:/usr/src/${EXAMPLE_FOLDER
-        working_dir: /usr/src/${FOLDER_NAME}+        working_dir: /usr/src/${EXAMPLE_FOLDER}
         command: mvn clean install         command: mvn clean install
     wildfly:     wildfly:
-        imagequay.io/wildfly/wildfly +        build: . 
-        volumes+        environment: 
-          - ./${FOLDER_NAME}.war:/opt/jboss/wildfly/standalone/deployments/${FOLDER_NAME}.war +            - "EXAMPLE_FOLDER=helloworld" 
-        depends:+        ports
 +          - 8080:8080 
 +        depends_on:
           - compiler           - compiler
 +               
 </code> </code>
  
tanszek/oktatas/informacios_rendszerek_integralasa/wildfly_in_docker.1683198654.txt.gz · Last modified: 2023/05/04 11:10 by knehez