One-Click Deployment of Mendix Apps to Cloud Foundry-Based Cloud Stacks
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 premises, 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
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.
2. Enter your Pivotal credentials.
3. Click Next. You will be logged into your Pivotal Instance.
4. Enter the following details:
5. Click Next. The App will be created in the Pivotal WS environment.
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.
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).
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.
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: