GETTING STARTED WITH OPEN SHIFT
معرفی کتاب «GETTING STARTED WITH OPEN SHIFT» نوشتهٔ Steven Pousty and Katie J. Miller، منتشرشده توسط نشر O'Reilly Media در سال 2014. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «GETTING STARTED WITH OPEN SHIFT» در دستهٔ بدون دستهبندی قرار دارد.
Copyright......Page 4 Table of Contents......Page 5 Who Should Read This Book......Page 9 Introducing the Insult Application......Page 10 How This Book Is Organized......Page 11 Conventions Used in This Book......Page 12 Safari® Books Online......Page 13 Acknowledgments......Page 14 Katie......Page 15 What Is the Difference Between IaaS, PaaS, and SaaS?......Page 17 The Three Versions of OpenShift......Page 18 Choosing the Right Solution for You......Page 19 Words You Need to Understand......Page 20 Technology You Need to Understand......Page 21 Setting Up the Command-Line Tools......Page 25 Creating Your First Application......Page 27 Autoscaling and Why You Should Use It by Default......Page 30 Reasons to Move to the Paid Tier......Page 31 Cloning Code to Your Local Machine......Page 33 Modifying Application Code......Page 34 Building and Deploying Your Code......Page 36 Action Hook Scripts......Page 37 Hot-Deploying Code......Page 38 Database-Related Cartridges......Page 41 Cron......Page 43 Continuous Integration......Page 45 Metrics and Monitoring......Page 47 Finding Cartridges and QuickStarts......Page 48 Adding Third-Party Cartridges......Page 51 SSH Access......Page 53 Using SSH to Interact with a Database......Page 55 Importing SQL in an SSH Session......Page 56 Preconfigured Environment Variables......Page 57 Custom Environment Variables......Page 58 Log Access......Page 59 Application Server Configuration Changes......Page 60 Using Marker Files......Page 61 Where to Declare Dependencies......Page 63 Incorporating Your Own Binary Dependencies......Page 65 Code to Connect to the Database......Page 66 Code to Query the Terms for the Insult......Page 67 What We Have Gained by Adding a Database......Page 68 WebSockets......Page 69 SSH Port Forwarding......Page 71 Custom URLs......Page 73 SSL Certificates......Page 75 Addressable Ports......Page 76 Where You Can Write “to Disk”......Page 81 Determining How Much Disk Space Is Used......Page 82 Copying Files to or from Your Local Machine......Page 83 Other Storage Options......Page 84 Manual Deployments......Page 85 Keeping and Utilizing Deployment History......Page 86 Application Snapshots with RHC......Page 87 Writing a Cron Script......Page 89 Moving Data off the Gear......Page 90 Managing Multiple SSH Keys......Page 93 Domain Access for Teams......Page 94 Possible Workflows......Page 95 What We Covered......Page 97 Other Areas to Explore......Page 98 Final Words......Page 99 Listing Directory Contents......Page 101 Changing Permissions......Page 102 Copying Files and Directories......Page 103 Where To Learn More......Page 104 About the Authors......Page 105 Copyright 4 Table of Contents 5 Preface 9 Who Should Read This Book 9 Why We Wrote This Book 10 Introducing the Insult Application 10 How This Book Is Organized 11 Online Resources 12 Conventions Used in This Book 12 Using Code Examples 13 Safari® Books Online 13 How to Contact Us 14 Acknowledgments 14 Steven 15 Katie 15 Chapter 1. Introduction 17 What Is the Difference Between IaaS, PaaS, and SaaS? 17 The Three Versions of OpenShift 18 Choosing the Right Solution for You 19 Things to Understand 20 Words You Need to Understand 20 Technology You Need to Understand 21 Chapter 2. Creating Applications 25 Preliminary Steps 25 Setting Up the Command-Line Tools 25 Creating Your First Application 27 Autoscaling and Why You Should Use It by Default 30 Reasons to Move to the Paid Tier 31 Chapter 3. Making Code Modifications 33 Cloning Code to Your Local Machine 33 Modifying Application Code 34 Building and Deploying Your Code 36 Action Hook Scripts 37 Hot-Deploying Code 38 Chapter 4. Adding Application Components 41 Database-Related Cartridges 41 Nondatabase Cartridges 43 Cron 43 Continuous Integration 45 Metrics and Monitoring 47 Finding Cartridges and QuickStarts 48 Adding Third-Party Cartridges 51 Chapter 5. Environment and Application Management 53 SSH Access 53 Using SSH to Interact with a Database 55 Importing SQL in an SSH Session 56 Environment Variables 57 Preconfigured Environment Variables 57 Custom Environment Variables 58 Overriding Preconfigured Environment Variables 59 Log Access 59 Changing Application Server or Database Settings 60 Application Server Configuration Changes 60 Database Configuration Changes 61 Using Marker Files 61 Chapter 6. Library Dependencies 63 Where to Declare Dependencies 63 Incorporating Your Own Binary Dependencies 65 Modifying Your Application to Use the Database 66 Code to Connect to the Database 66 Code to Close the Database Connection 67 Code to Query the Terms for the Insult 67 What We Have Gained by Adding a Database 68 Chapter 7. Networking 69 WebSockets 69 SSH Port Forwarding 71 Custom URLs 73 SSL Certificates 75 Talking to Other Services 76 Addressable Ports 76 Chapter 8. Disk Usage 81 Where You Can Write “to Disk” 81 Determining How Much Disk Space Is Used 82 Copying Files to or from Your Local Machine 83 Other Storage Options 84 Chapter 9. Backup 85 Managing Deployments and Rollbacks 85 Manual Deployments 85 Keeping and Utilizing Deployment History 86 Application Snapshots with RHC 87 Backing Up Your Database 89 Writing a Cron Script 89 Moving Data off the Gear 90 Chapter 10. Team Collaboration 93 Managing Multiple SSH Keys 93 Domain Access for Teams 94 Possible Workflows 95 Chapter 11. Summary 97 What We Covered 97 Other Areas to Explore 98 Final Words 99 Appendix A. Basic Linux for Non-Linux Users 101 Listing Directory Contents 101 Changing Permissions 102 Working with Files and Directories 103 Creating Files 103 Moving Files and Directories 103 Copying Files and Directories 103 Deleting Files 104 Creating Directories 104 Deleting Directories 104 Where To Learn More 104 About the Authors 105 Intrigued by the possibilities of developing web applications in the cloud? With this concise book, you get a quick hands-on introduction to OpenShift, the open source Platform as a Service (PaaS) offering from Red Hat. 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. Though the book uses Python, application examples in other languages are available on GitHub. If you can build web applications, use a command line, and program in Java, Python, Ruby, Node.js, PHP, or Perl, you're ready to get started. Dive in and create your first example application with OpenShift Modify the example with your own code and hot-deploy the changes Add components such as a database, task scheduling, and monitoring Use external libraries and dependencies in your application Delve into networking, persistent storage, and backup options Explore ways to adapt your team processes to use OpenShift Learn OpenShift terms, technologies, and commands Get a list of resources to learn more about OpenShift and PaaS
دانلود کتاب GETTING STARTED WITH OPEN SHIFT