Skip to content

Instantly share code, notes, and snippets.

@ankurcha
Created December 9, 2011 10:03
Show Gist options
  • Select an option

  • Save ankurcha/1450961 to your computer and use it in GitHub Desktop.

Select an option

Save ankurcha/1450961 to your computer and use it in GitHub Desktop.
Deploying webapps as a part of a CD pipeline

Assumptions

  • Configs result in a rpm file for each environment that are installed correctly.(rpm.name: appname-config-env : provides appname-config)
  • Servers are assumed to have a tomcat running which was deployed as an rpm (rpm.name: appname-tomcat)
  • Webapp is packaged as a rpm containing only a war with proper startup and shutdown scripts. (rpm.name: appname-war) This depends on appname-tomcat and appname-config.

Deployment

  • Stage the files by pushing them into the yum repositories.
  • Deploy stage involves installing appname-config-env and then appname-war (this may cause appname-tomcat) to be pulled in and installed.

Rollback

  • Uninstall appname-war (and appname-config if needed)
  • Install older appname-war (and appname-config files if needed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment