O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

OpenShift for Developers

Book Description

Keen to build web applications for the cloud? Get a quick hands-on introduction to OpenShift, the open source Platform as a Service (PaaS) offering from Red Hat. With this practical guide, you’ll learn the steps necessary to build, deploy, and host a complete real-world application on OpenShift without having to slog through long, detailed explanations of the technologies involved.

Table of Contents

  1. Foreword
  2. Introduction
    1. Who Should Read This Book
    2. Why We Wrote This Book
    3. Navigating This Book
    4. Online Resources
    5. Conventions Used in This Book
    6. Using Code Examples
    7. Safari® Books Online
    8. How to Contact Us
    9. Acknowledgments
      1. Grant
      2. Graham
  3. 1. Introduction to a Container Application Platform
    1. Docker
    2. Kubernetes to the Rescue?
    3. OpenShift
      1. Web-Based Console
      2. Command-Line Tool
      3. Source-to-Image
      4. Integrated Logging and Metrics
    4. Summary
  4. 2. Concepts You Need to Understand
    1. Interacting with OpenShift
    2. The Deployed Application
    3. Build and Deployment Process
    4. Online Cheat Sheet
    5. Summary
  5. 3. Installing the All-in-One VM
    1. Software Requirements
      1. Install VirtualBox
      2. Install Vagrant
      3. Vagrant init
      4. Change Your Memory Configuration
      5. Start Things Up
      6. Download the Latest oc Command-Line Tool
    2. Initial Login from the Web Console
    3. Now Log In from the Command Line
    4. Now Log In to the Web Console as a Normal User
    5. Create a GitHub Account
    6. Summary
  6. 4. Developing and Deploying Your First Application
    1. Understanding the Tools
      1. Git
      2. WildFly
    2. Creating Our First Application
      1. Creating a Copy of the Sample Application
      2. Creating the Application
    3. Making a Code Change and Starting a New Build
    4. Summary
  7. 5. Adding Dependencies and a Database
    1. Creating the Base Application
      1. Forking the Repository and Deploying the Application
      2. Adding the Database to the Application
    2. Adding a REST Endpoint
    3. Summary
  8. 6. Deploying and Scaling Your Application
    1. Automatic Deployments Using Webhooks
      1. Adding Our Webhook URI to GitHub
      2. Visibility of Your OpenShift Instance
    2. Scaling Your Application
      1. Scaling from the Web Console
      2. Applications Suitable for Scaling
      3. Automatic Scaling of an Application
    3. Deployment Strategies
      1. Rolling Strategy
      2. Recreate Strategy
      3. Changing the Strategy
      4. Implementing Custom Strategies
    4. Application Health Checks
    5. Deployment Lifecycle Hooks
    6. Application Rollback
    7. Summary
  9. 7. Using Application Templates
    1. What Is an Application Template?
    2. Benefits of Using Templates
    3. Using Our First Application Template
    4. Creating Your Own Templates
    5. Summary
  10. 8. Working with Your Application
    1. Listing Running Instances
    2. Container Logs
      1. Build Logs
      2. Application Logs
      3. Application Startup Failures
    3. Environment Variables
    4. Editing Configurations
    5. Debugging an Application
    6. Deleting an Application
    7. Summary
  11. 9. Deploying an Existing Docker Image
    1. What Is Docker Hub?
      1. The Dockerfile
      2. The Docker Build
      3. Sharing the Docker Image
    2. Running a Docker Hub Image on OpenShift
    3. Routes
    4. Summary
  12. Afterword
    1. What We Covered
    2. Final Words