Bug 972979

Summary: Java (as, eap, ews) templates should not include a ROOT.war in the template
Product: OpenShift Online Reporter: Dan McPherson <dmcphers>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: bmeng, mpatel, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1046865 (view as bug list) Environment:
Last Closed: 2013-06-24 14:53:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1046865    

Description Dan McPherson 2013-06-11 00:49:20 UTC
Description of problem:
The jboss templates are including a ROOT.war in the template downloaded by the user.  This should be a server side component only since it is built when the app is deployed.

To add it to the git repo is bad for a few of reasons:
1) It wastes git space
2) It promotes a bad habit of uploading wars
3) It's confusing.  Implies I need to build my content before I push it.

Comment 2 openshift-github-bot 2013-06-18 19:15:52 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/f96ad24985daab598e5dd937bd21d72680ddf5e3
Bug 972979: Don't include ROOT.war in initial Git repository

Comment 4 Meng Bo 2013-06-19 12:52:43 UTC
Checked on INT(devenv_3382),

For the new created jboss apps, there is no ROOT.war under $OPENSHIFT_JBOSS_DIR

[jbossasapp-domxq1.dev.rhcloud.com 599071435196410961592320]\> ls jbossas/template/deployments/
[jbossasapp-domxq1.dev.rhcloud.com 599071435196410961592320]\> 

For the existing jbossews apps, the symlink under $OPENSHIFT_JBOSS_DIR/webapps is replaced by a real dir

[tomcat-bmeng1int.int.rhcloud.com 51ba916e6cec0e28b3000027]\> ls -l jbossews/|grep web
drwxr-xr-x. 2 51ba916e6cec0e28b3000027 51ba916e6cec0e28b3000027 4096 Jun 18 23:39 webapps


Move bug to verified.