Helping you drive digital innovation
Subscribe
RSS Feed of the Mendix Blog
Thanks for Subscribing

Keep an eye out for Mendix resources coming straight to your inbox.

One-Click Deployment of Mendix Apps to Cloud Foundry-Based Cloud Stacks

on April 13, 2015

Share:

Today, we released new features that tighten our integration with the Cloud Foundry ecosystem. We’ve added support for external filestores to store FileDocuments, made the session cookie name configurable to support horizontal scaling and added Cloud Foundry support in the Mendix Business Modeler. Furthermore, we released version 1.0 of our Mendix Cloud Foundry Buildpack, which turns our visual models into deployable Cloud Foundry artifacts called Droplets.

When we announced our support for Cloud Foundry last year and later joined the Cloud Foundry Foundation, our intent was clear: accelerate our strategy of providing the most open, flexible platform that supports seamless, multi-cloud deployment.  By integrating with Cloud Foundry’s open PaaS framework, our developers would have the flexibility to deploy their apps on any Cloud Foundry-based public, private and hybrid cloud stack.

Today, we added another Cloud Foundry-based stack to your deployment arsenal through our partnership with Pivotal. Web and mobile apps modeled in Mendix can now be deployed with just one click to Pivotal Cloud Foundry (PCF) on premise, PCF on Amazon Web Services, or Pivotal Web Services. This means you can combine Mendix’s significant time to market advantages with the power of Pivotal—secure, highly available, Internet-scale operations.

In the post below, I’ll show you how to take advantage of these new capabilities by walking through the process of setting up and deploying a Mendix app to Pivotal Web Services.

How to Start

Download the latest version of the Mendix Business Modeler from the Mendix App Store. Then, register here in order to enable the new Mendix for Pivotal functionality.

If you’re not a current Pivotal customer, you can sign up for a 60-day free trial of Pivotal Web Services.

Configure Pivotal Settings in the Mendix Business Modeler

In the Mendix Business Modeler, you’ll need to connect to your Pivotal Cloud Foundry installation or Pivotal Web Services account to be able to deploy your application. Complete the following steps to configure your Pivotal settings:

1. Go to Run > Edit Pivotal Settings.

Edit-pivotal-settings

2. Enter your Pivotal credentials.

enter-pivotal-credentials

3. Click Next. You will be logged into your Pivotal Instance.

4. Enter the following details:

enter-Mendix-details

5. Click Next. The App will be created in the Pivotal WS environment.

App-configuration

Add a Database and Object Storage service to your app

Before deploying your Mendix app, you’ll need to bind a Database and Object Storage service to your App in Pivotal Web Services.

In this scenario, we’ll select ElephantSQL, a PostgreSQL database, as our database service. Mendix supports PostgreSQL and MySQL databases on Cloud Foundry.

select-elephantSQL

In addition, we’ll configure the Amazon S3 object store to enable persistent file storage. Mendix supports S3 and object stores that implement the S3 API (e.g. OpenStack Swift, CEPH).

configure-Amazon-S3-object-store

For more of a step by step guide explaining how to bind the above mentioned services to your app, view our Documentation.

Deploy your Mendix App to Pivotal with One Click!

Now it’s time to deploy to Pivotal: just click the arrow for the Run options and select Run on Pivotal.

run-on-pivotal

With just one click, the Mendix app is deployed to the configured Pivotal App and started automatically. What happens in the background is that the visual application model is sent to Pivotal Web Services and the Mendix CF Buildpack turns the model into a deployable artifact.

To see Mendix for Pivotal in action, watch the video below:

Subscribe to Our Blog

Receive Mendix platform tips, tricks, and other resources straight to your inbox every two weeks.

RSS Feed of the Mendix Blog

About Johan den Haan

As Mendix’s chief technology officer, Johan leads the company’s overall technical strategy and research & product development teams. Johan speaks regularly at technology events and is a renowned blogger on a range of topics, including PaaS, Model-Driven Development, Scrum, cloud computing and software engineering. He earned a Master of Science in Computer Science with a specialization in Information Architecture from the Delft University of Technology. Keep in touch at @JohanDenHaan.

| Twitter