/automator

Automatic install an application server of your choice and deploy your applications.

Primary LanguageShellMIT LicenseMIT

automator v0.4

ANT script toolbox to automate the build of application systems

Getting started

  1. Download latest release and unzip latest version
  2. Setup environment configuration
  3. Choose modules for your system
  4. Run ANT tasks

Setup environment for your system

Create your system specific configuration file in the folder config and name it env.{name of your host}.properties or env.{username}.properties. Copy properties from the default properties in env.properties file you want to customize.

Choosing modules for your system

Setup the variable

system.modules
in your env.{...}.properties file. Configure the modules separated by comma.

For example for a system with a Apache, TomCat and SSL you have to setup like this:

system.modules=system_configuration_files,self_signed_cert,apache_tomcat_vhost,tomcat_7

Run ANT tasks

clean - Removes the build folder for all modules build - Runs the build tasks for all modules deploy - Deploys the build for all modules show-modules-properties - Displays the configuration for each module

Available modules

apache_tomcat_vhost

Build Apache webserver configuration for your system

sample

Empty template for your own modules

self_signed_cert

Generate a self signed certificate

system_configuration_files

Generate your system specific configuration files

tomcat_7

Download, unzip and customize your TomCat installation in a destination folder

tomcat_7_liferay_6_2_bundle

Download, unzip and customize your TomCat / Liferay bundle

tomcat_natives_win

Download and install tomcat_natives for windows

Extending automator

Macros

All macros placed in the macro folder will be loaded automatically.

Build steps

You can extend the build steps by adding a new one in the includes/build-modules.xml and adding the same build step in all available modules.

Upgrading from older versions

  1. Backup your customizations or better: get involved and make a pull request
  2. Replace the folders following folder with the latest ones: includes, lib, macros
  3. Replace the build.xml with the latest version
  4. Migrate the build steps of your modules if necessary

Change Log

Version 0.4

  • All configuration for an environment are placed in one file. Migration: Just copy the contents from env.properties and system.properties into one configuration files config/env.properties. And do so with your customized configuration files.