Cloud Foundry - scalatra-mongo-sample

This example is a simple Scalatra web app that stores and retrieves messages from Mongo.  You can find the source for the application at https://github.com/davidehringer/scalatra-mongo-sample.  The only difference in this forked example from the original in the Cloud Foundry Samples is that the URL was modified so that it would not collide with other instances of the application that may have already been deployed to Cloudfoundry.com.

To deploy the example app, configure a Job with the following tasks:

  1. Checkout source
  2. Build the WAR file using Maven 3: mvn clean package
    1. Uncheck The build will produce test results, as the example doesn't contain tests.

  3. Configure a Push Task for deploying the WAR file
    1. Select your target
    2. The Application Location defaults should be sufficient
    3. Select Manifest File for the Configuration Option.
    4. (Optional) Check Wait for startup to complete? if you want Bamboo to monitor the deployment process.

You can now run the Plan and the application will be deployed.

The screenshot shows creating the required service in its own task. This is another option but not the one outlined here.