Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Cloud Foundry for Developers
  • Table Of Contents Toc
  • Feedback & Rating feedback
Cloud Foundry for Developers

Cloud Foundry for Developers

By : Rick Farmer, Rahul Kumar Jain, Wu
4 (7)
close
close
Cloud Foundry for Developers

Cloud Foundry for Developers

4 (7)
By: Rick Farmer, Rahul Kumar Jain, Wu

Overview of this book

Cloud Foundry is the open source platform to deploy, run, and scale applications. Cloud Foundry is growing rapidly and a leading product that provides PaaS (Platform as a Service) capabilities to enterprise, government, and organizations around the globe. Giants like Dell Technologies, GE, IBM, HP and the US government are using Cloud Foundry innovate faster in a rapidly changing world. Cloud Foundry is a developer’s dream. Enabling them to create modern applications that can leverage the latest thinking, techniques and capabilities of the cloud, including: ? DevOps ? Application Virtualization ? Infrastructure agnosticism ? Orchestrated containers ? Automation ? Zero downtime upgrades ? A/B deployment ? Quickly scaling applications out or in This book takes readers on a journey where they will first learn the Cloud Foundry basics, including how to deploy and scale a simple application in seconds. Readers will build their knowledge of how to create highly scalable and resilient cloud-native applications and microservices running on Cloud Foundry. Readers will learn how to integrate their application with services provided by Cloud Foundry and with those external to Cloud Foundry. Readers will learn how to structure their Cloud Foundry environment with orgs and spaces. After that, we’ll discuss aspects of continuous integration/continuous delivery (CI/CD), monitoring and logging. Readers will also learn how to enable health checks, troubleshoot and debug applications. By the end of this book, readers will have hands-on experience in performing various deployment and scaling tasks. Additionally, they will have an understanding of what it takes to migrate and develop applications for Cloud Foundry.
Table of Contents (12 chapters)
close
close

Service binding of applications


Whenever a service is bound to an application (or to multiple applications), the key step it performs is to inject the service's configuration and credentials into an application. This information can be found in an application's environment variables, within VCAP_SERVICES. The VCAP_SERVICES is a JSON object that contains an array of information pertaining to bound services for that application. This is on the contrary to its sister JSON object, VCAP_APPLICATION, that holds information pertaining to the configuration of the application itself, such as its URL, memory limits, and disk capacity. We can view an application's environment variable through the cf env <APP_NAME> command.

If we clone a fresh copy of the hello-spring-cloud application from https://github.com/Cloud-Foundry-For-Developers/hello-spring-cloud.git and deploy it onto Cloud Foundry, we can perform a cf env hello-spring-cloud

Figure 1: Getting the environment variables of a fresh copy...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Cloud Foundry for Developers
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon