Using Docker in development for Java EE applications

后端 未结 7 1082
北荒
北荒 2021-02-05 13:59

I will add 300 points as bounty

I have recently started to take a closer look at Docker and how I can use it for faster getting new member of t

7条回答
  •  青春惊慌失措
    2021-02-05 14:42

    For my current deployment process I use glassfish and this trick, which works very nicely.

    
                org.codehaus.mojo
                exec-maven-plugin
                ${plugin.exec.version}
                
                    
                        docker
                        package
                        
                            exec
                        
                    
                
                
                    docker
                    
                        cp
                        ${project.build.directory}/${project.build.finalName}
                        glassfish:/glassfish4/glassfish/domains/domain1/autodeploy
                    
                
            
    

    Once you run: mvn clean package, the containers kicks-in and starts deployment of the latest war.

提交回复
热议问题