Cloud Foundry is an open-source platform as a service (PaaS) that provides you with a choice of clouds, developer frameworks, and application services.
This demo makes use of the Flogo CLI. If you don’t have that one running yet, please check out Getting Started with the Flogo CLI
If you want to run Flogo apps in a Cloud Foundry environment, you have two options:
With the Cloud Foundry Binary Buildpack you can run arbitrary binary web servers on Cloud Foundry without the need to have a specific build pack for that language. Since Flogo can compile down to a binary, this saves you from installing additional buildpacks. There are a few prerequisites you need to take into account though:
env GOOS=linux flogo build
)Steps to deploy:
chmod +x <appname>
cf push <name in pcf> -c './<appname>' -b binary_buildpack
For more detailed information and more flags you can set during deployments, check Binary Buildpack in the Cloud Foundry docs.
By default, apps deployed with the cf push command run in standard Cloud Foundry Linux containers. With Docker support enabled, Cloud Foundry can also deploy and manage apps running in Docker containers.
To enable docker support an administrator has to run:
cf enable-feature-flag diego_docker
For example, the below command would push and run the Project Flogo Web UI on Cloud Foundry
cf push my-app --docker-image flogo/flogo-docker
For more detailed information and more flags you can set during deployments, check Deploy an App with Docker in the Cloud Foundry docs.