With this concise eBook you’ll learn the steps necessary to build, deploy, and host a complete real-world application on OpenShift, without having to read long, detailed explanations of the technologies involved.
Table of Contents
1. Introduction What Is the Difference Between IaaS, PaaS, and SaaS? The Three Versions of OpenShift Choosing the Right Solution for You Things to Understand Words You Need to Understand Technology You Need to Understand 2. Creating Applications Preliminary Steps Setting Up the Command-Line Tools Creating Your First Application Autoscaling and Why You Should Use It by Default Reasons to Move to the Paid Tier 3. Making Code Modifications Cloning Code to Your Local Machine Modifying Application Code Building and Deploying Your Code Action Hook Scripts Hot-Deploying Code 4. Adding Application Components Database-Related Cartridges Nondatabase Cartridges Cron Continuous Integration Metrics and Monitoring Finding Cartridges and QuickStarts Adding Third-Party Cartridges 5. Environment and Application Management SSH Access Using SSH to Interact with a Database Importing SQL in an SSH Session Environment Variables Preconfigured Environment Variables Custom Environment Variables Overriding Preconfigured Environment Variables Log Access Changing Application Server or Database Settings Application Server Configuration Changes Database Configuration Changes Using Marker Files 6. Library Dependencies Where to Declare Dependencies Incorporating Your Own Binary Dependencies Modifying Your Application to Use the Database Code to Connect to the Database Code to Close the Database Connection Code to Query the Terms for the Insult What We Have Gained by Adding a Database 7. Networking WebSockets SSH Port Forwarding Custom URLs SSL Certificates Talking to Other Services Addressable Ports 8. Disk Usage Where You Can Write “to Disk” Determining How Much Disk Space Is Used Copying Files to or from Your Local Machine Other Storage Options 9. Backup Managing Deployments and Rollbacks Manual Deployments Keeping and Utilizing Deployment History Application Snapshots with RHC Backing Up Your Database Writing a Cron Script Moving Data off the Gear 10. Team Collaboration Managing Multiple SSH Keys Domain Access for Teams Possible Workflows 11. Summary What We Covered Other Areas to Explore Final Words Appendix A. Basic Linux for Non-Linux Users