/
How-To-Do-Patch Release

eGov ERP DevOps

How-To-Do-Patch Release

http://ci.egovernments.org/job/eGov-AP-Impl/ws/egov/egov-ear/target/egov-ear-ap-3.0.0-SNAPSHOT/lib/egov-wtms-3.0.0-SNAPSHOT.jar

Steps:
- connect to vpn
- Login to APACHE
- Switch to egov user
- cd .deploy-runtime

- Then extrat 'egov-ear.ear' file to patch file.
rm -rf patch && unzip egov-ear.ear -d patch
- Download the module specific JAR/WAR files
wget --auth-no-challenge --http-user=username --http-password=password http://ci.egovernments.org/job/eGov-AP-Impl/ws/<path-of-JAR/WAR>
- Copy the downloaded JAR/WAR to EAR respective path
if JAR
cp -rp path-of-JAR patch/lib/path-of-JAR
if WAR
cp -rp path-of-WAR patch/path-of-WAR
- Once replaced, archive the EAR
cd patch && jar -cvf ../egov-ear.ear *
- Then Push the new EAR file to NFS location
rsync -avr -P -e "ssh -p 2232" egov-ear.ear egov@10.0.0.136:/NFS-Server1/egovFS/.
----------------
Time to deploy

- Login to all APP servers.
- Gracefull stop
cd wildfly/bin && ./jboss-cli.sh --connect --controller=10.0.0.136:9990 --command=:shutdown --timeout=10000
- Remove deployment TAG from standalone.xml
- Start the APP servers
cd wildfly/bin && nohup ./standalone.sh -Ddb.migration.enabled=false &
- Login to Jboss management console using jboss-cli
cd wildfly/bin && /jboss-cli.sh --connect --controller=10.0.0.136:9990
[standalone@10.0.0.136:9990 /] deploy /NFS-Server1/egovFS/egov-ear.ear
Then wait till the deployment completes.

Related content

ear-deployer
ear-deployer
More like this
Finance CI/CD process for Dev environment
Finance CI/CD process for Dev environment
More like this
User Guide
User Guide
More like this
Service Build Updates 2.9
Service Build Updates 2.9
More like this
eGov ERP repos
eGov ERP repos
More like this
Egov API Automation :: Phase 0 : Sprint 2 :: Deliverable
Egov API Automation :: Phase 0 : Sprint 2 :: Deliverable
More like this

DevOps as a Culture