Cloud Foundry has a Container-based architecture, open source cloud application platform. It provides the cloud instances and mainly used to deploy the Application directly into cloud environment. Instead of running the app separately, using the CF CLI(Command Line Interface) tool to deploy , test, configure and manage the apps on CF.
CF uses role-based access control, with each role granting permissions in either an organization or an application space.
To List all orgs that the user has access to the below command can be given in the terminal.
To List all spaces in the current org
To deploy an application, need to push its code to the Cloud Foundry instance. The push command is used to push the application on cloud foundary. The arguments may be vary depends on application types. However, it is the best practice to specify all the arguments in a system file called manifest.yml
It provides consistency and reproducibility.An app can specify its service instance dependencies in the manifest.yml file. It will automatically bind to the service instances.
Manifests has written in YAML. The below manifest illustrates some YAML conventions, as follows:
– name: my-app
App receives web requests (if it binds to TCP port)
|cf target||Sets or views the targeted organization or space|
|cf stop||Stops an application|
|cf start||Start an app|
|cf set-env||Sets an environment variable for an application(cf set-env
|cf services||Lists all of the services that are available in the current space|
|cf restart||Stop all instances of the app, then start them again. This causes downtime.|
|cf restage||Recreate the app’s executable artifact using the latest pushed app files and the latest environment (variables, service bindings, buildpack, stack, etc.). This action will cause app downtime.|
|cf rename||Rename an app|
|cf push||Deploys a new application(cf push
|cf marketplace||Lists all of the services that are available in the marketplace.|
|cf logs||Displays the STDOUT and STDERR log streams of an application.(cf logs |
|cf login -a ||Log in to CF|
|cf help||show help|
|cf events||Displays runtime events that are related to an application.(cf events
|cf delete||Deletes an existing application.(cf delete
|cf create-space||Creates a space.(cf create-space
|cf bind-service||Binds an existing service instance to your application.|
|cf apps||Lists all of the applications that you deployed in the current space. The status of each application is also displayed.|
|cf api||To view the current API endpoint|
|cf -v||Displays the version of the Cloud Foundry command line interface.|
CloudIQ is a leading Cloud Consulting and Solutions firm that helps businesses solve today’s problems and plan the enterprise of tomorrow by integrating intelligent cloud solutions. We help you leverage the technologies that make your people more productive, your infrastructure more intelligent, and your business more profitable.
626 120th Ave NE, B102, Bellevue,
No. 3 & 4, Venkateswara Avenue,Bazaar Main Rd, Ramnagar South, Madipakkam, Chennai – 600091
© 2019 CloudIQ Technologies. All rights reserved.