Learning OpenShift

Leverage the power of cloud computing using OpenShift Online to design, build, and deploy scalable applications

Learning OpenShift

Learning
Grant Shipley

Leverage the power of cloud computing using OpenShift Online to design, build, and deploy scalable applications
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781783980963
Paperback304 pages

About This Book

  • Use the OpenShift Online Platform as a Service to speed up application development and deployment
  • Explore how to manage an application’s lifecycle including performance monitoring, debugging application code, and working in a team environment
  • Enhance applications with add-on cartridges for job scheduling, database systems, continuous integration and management tools

Who This Book Is For

This book is ideal for you if you're a developer experienced with the PHP or Java programming languages and have a basic understanding of using the command line.

Table of Contents

Chapter 1: Creating Your First OpenShift Application
Creating your OpenShift Online account
Installing and configuring the Red Hat Cloud command-line tools
Creating your first OpenShift Online application
Using the web console
Summary
Chapter 2: Creating and Managing Applications
Learning the essential RHC commands
Understanding cartridges
Using cartridges
Using databases with your application
The cron cartridge
Summary
Chapter 3: Application Maintenance
Stopping and starting applications
Viewing application logfiles
Backing up and restoring applications
Secure shell and your application
Understanding environment variables
Summary
Chapter 4: Using an Integrated Development Environment
To use an IDE or not to use an IDE is the question
Installing and configuring Eclipse
Importing an existing OpenShift application
Creating and managing a new OpenShift application
Deleting an application
Integrating OpenShift with other IDEs
Summary
Chapter 5: Creating and Deploying Java EE Applications
The evolution of Java EE
Introducing the sample application
Creating a JBoss EAP application
Creating the database access class
Creating the domain model
Creating the REST services
Creating the user interface
Taking the easy way out
Summary
Chapter 6: Creating and Deploying Spring Framework Java Applications
An overview of the Spring Framework
Creating a Spring application
Deploying the application
Adding the web frontend
Summary
Chapter 7: Adding a Continuous Integration Environment to Applications
What is continuous integration?
Adding support for a Jenkins server
Embedding Jenkins into an existing application
Using the Jenkins web console
Building code with Jenkins
Manually triggering a build
Summary
Chapter 8: Using OpenShift for Team Development
Setting up multiple domains
Adding members to a domain
Promoting code between environments
Adding access using SSH keys
Summary
Chapter 9: Using the OpenShift Web Console
Creating applications
Managing applications
Summary
Chapter 10: Debugging Applications
Using port forwarding
Using Eclipse for Java debugging
Using IntelliJ for Java debugging
Using logfiles for debugging
Summary
Chapter 11: Using the Marker and Action Hook System
An overview of the marker system
Creating and using markers
An overview of the action hook system
Creating and using action hooks
Summary
Chapter 12: Scaling Applications
Why scaling matters
Vertical and horizontal scaling
Using automatic scaling
Using manual scaling
Setting scaling limits
Viewing the load-balancer information
Customizing the scaling algorithm
Summary
Chapter 13: Using the Do-It-Yourself Cartridge
Understanding the DIY cartridge
Creating an application with the DIY cartridge
Stopping the default web server
Creating a Tomcat 8 server
Summary

What You Will Learn

  • Master OpenShift Online by using the command line, web console, and IDE integrations
  • Develop applications that will automatically scale based upon the number of concurrent HTTP requests by utilizing HAProxy and multiple OpenShift gears
  • Utilize continuous integration to perform builds and run automated test suites
  • Leverage OpenShift Online to manage development teams with fine grained access permissions
  • Debug applications deployed to the OpenShift Online service by leveraging remote debugging and logfiles
  • Use add-on cartridges to provide database servers, cron job scheduling, deployments, and metrics for your applications
  • Extend the functionality of the OpenShift platform by deploying custom servers using the Do-It-Yourself cartridge

In Detail

Cloud computing and particularly Platform as a Service is rapidly changing the way software engineers approach software development. Without knowing the gritty details of the operating system and application servers, developers are able to use the OpenShift Online platform to tune performance and achieve scalability while also ensuring that their applications are stable and reliable.

This book will guide you through the essential concepts necessary to use the OpenShift platform. Whether you are a seasoned developer with years of experience or just starting to learn how to develop software, this book will provide you with all of the information you need from account creation, installation and configuration of client tools to integrating an IDE with the service, deployment, and management of PHP and Java-based applications.

With plenty of sample code and screenshots, this book will ensure your success in speeding up application development while also creating enterprise class scalable applications.

Authors

Table of Contents

Chapter 1: Creating Your First OpenShift Application
Creating your OpenShift Online account
Installing and configuring the Red Hat Cloud command-line tools
Creating your first OpenShift Online application
Using the web console
Summary
Chapter 2: Creating and Managing Applications
Learning the essential RHC commands
Understanding cartridges
Using cartridges
Using databases with your application
The cron cartridge
Summary
Chapter 3: Application Maintenance
Stopping and starting applications
Viewing application logfiles
Backing up and restoring applications
Secure shell and your application
Understanding environment variables
Summary
Chapter 4: Using an Integrated Development Environment
To use an IDE or not to use an IDE is the question
Installing and configuring Eclipse
Importing an existing OpenShift application
Creating and managing a new OpenShift application
Deleting an application
Integrating OpenShift with other IDEs
Summary
Chapter 5: Creating and Deploying Java EE Applications
The evolution of Java EE
Introducing the sample application
Creating a JBoss EAP application
Creating the database access class
Creating the domain model
Creating the REST services
Creating the user interface
Taking the easy way out
Summary
Chapter 6: Creating and Deploying Spring Framework Java Applications
An overview of the Spring Framework
Creating a Spring application
Deploying the application
Adding the web frontend
Summary
Chapter 7: Adding a Continuous Integration Environment to Applications
What is continuous integration?
Adding support for a Jenkins server
Embedding Jenkins into an existing application
Using the Jenkins web console
Building code with Jenkins
Manually triggering a build
Summary
Chapter 8: Using OpenShift for Team Development
Setting up multiple domains
Adding members to a domain
Promoting code between environments
Adding access using SSH keys
Summary
Chapter 9: Using the OpenShift Web Console
Creating applications
Managing applications
Summary
Chapter 10: Debugging Applications
Using port forwarding
Using Eclipse for Java debugging
Using IntelliJ for Java debugging
Using logfiles for debugging
Summary
Chapter 11: Using the Marker and Action Hook System
An overview of the marker system
Creating and using markers
An overview of the action hook system
Creating and using action hooks
Summary
Chapter 12: Scaling Applications
Why scaling matters
Vertical and horizontal scaling
Using automatic scaling
Using manual scaling
Setting scaling limits
Viewing the load-balancer information
Customizing the scaling algorithm
Summary
Chapter 13: Using the Do-It-Yourself Cartridge
Understanding the DIY cartridge
Creating an application with the DIY cartridge
Stopping the default web server
Creating a Tomcat 8 server
Summary

Book Details

ISBN 139781783980963
Paperback304 pages
Read More