Openshift Container Platform 3.11 Using Images

Openshift Container Platform 3.11 Using Images

OpenShift Container Platform 3.11 Using Images OpenShift Container Platform 3.11 Guide to Using Images Last Updated: 2021-07-14 OpenShift Container Platform 3.11 Using Images OpenShift Container Platform 3.11 Guide to Using Images Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract Use these topics to find out what different S2I (Source-to-Image), database and Docker images are available for OpenShift Container Platform 3.11 users. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .O . .V . E. .R .V . I. E. W. 6. .C . H. .A . P. .T .E . R. 2. S. .O . .U . R. C. E. -. T. .O . -. I. M. .A . G. E. ( .S . 2. I. ). 7. 2.1. OVERVIEW 7 2.2. JAVA 7 2.2.1. Overview 7 2.2.2. Versions 7 2.2.3. Images 7 2.2.4. Build Process 7 2.2.5. Configuration 8 2.2.6. Building and Deploying Java Applications 8 2.2.7. Building and Deploying from Source 9 2.2.8. Building and Deploying from Binary Artifacts 9 2.2.9. Java Environment Variables 9 2.2.10. Additional resources 20 2.3. .NET CORE 20 2.3.1. Benefits of Using .NET Core 20 2.3.2. Supported Versions 20 2.3.3. Images 20 2.3.4. Build Process 21 2.3.5. Environment Variables 21 2.3.6. Quickly Deploying Applications from .NET Core Source 23 2.4. NODE.JS 23 2.4.1. Overview 23 2.4.2. Versions 24 2.4.3. Images 24 2.4.4. Build Process 24 2.4.5. Configuration 24 2.4.6. Hot Deploying 25 2.5. PERL 26 2.5.1. Overview 26 2.5.2. Versions 26 2.5.3. Images 26 2.5.4. Build Process 26 2.5.5. Configuration 27 2.5.6. Accessing Logs 27 2.5.7. Hot Deploying 27 2.6. PHP 28 2.6.1. Overview 28 2.6.2. Versions 28 2.6.3. Images 28 2.6.4. Build Process 29 2.6.5. Configuration 29 2.6.5.1. Apache Configuration 31 2.6.6. Accessing Logs 31 2.6.7. Hot Deploying 31 2.7. PYTHON 32 2.7.1. Overview 32 2.7.2. Versions 32 2.7.3. Images 32 2.7.4. Build Process 32 1 OpenShift Container Platform 3.11 Using Images 2.7.5. Configuration 33 2.7.6. Hot Deploying 34 2.8. RUBY 34 2.8.1. Overview 34 2.8.2. Versions 34 2.8.3. Images 35 2.8.4. Build Process 35 2.8.5. Configuration 35 2.8.6. Hot Deploying 37 2.9. CUSTOMIZING S2I IMAGES 37 2.9.1. Overview 37 2.9.2. Invoking Scripts Embedded in an Image 38 .C . H. .A . P. .T .E . R. 3. D. A. .T .A . B. .A . S. .E . .I M. A. .G . E. .S . .4 .0 . 3.1. OVERVIEW 40 3.2. MYSQL 40 3.2.1. Overview 40 3.2.2. Versions 40 3.2.3. Images 40 3.2.4. Configuration and Usage 41 3.2.4.1. Initializing the Database 41 3.2.4.2. Running MySQL Commands in Containers 41 3.2.4.3. Environment Variables 41 3.2.4.4. Volume Mount Points 44 3.2.4.5. Changing Passwords 44 3.2.5. Creating a Database Service from a Template 45 3.2.6. Using MySQL Replication 46 3.2.6.1. Creating the Deployment Configuration for the MySQL Master 46 3.2.6.2. Creating a Headless Service 49 3.2.6.3. Scaling the MySQL Slaves 49 3.2.7. Troubleshooting 49 3.2.7.1. Linux Native AIO Failure 50 3.3. POSTGRESQL 50 3.3.1. Overview 50 3.3.2. Versions 51 3.3.3. Images 51 3.3.4. Configuration and Usage 51 3.3.4.1. Initializing the Database 51 3.3.4.2. Running PostgreSQL Commands in Containers 51 3.3.4.3. Environment Variables 52 3.3.4.4. Volume Mount Points 53 3.3.4.5. Changing Passwords 53 3.3.5. Creating a Database Service from a Template 55 3.4. MONGODB 55 3.4.1. Overview 55 3.4.2. Versions 55 3.4.3. Images 55 3.4.4. Configuration and usage 56 3.4.4.1. Initializing the database 56 3.4.4.2. Running MongoDB commands in containers 56 3.4.4.3. Environment Variables 57 3.4.4.4. Volume mount points 58 3.4.4.5. Changing passwords 58 2 Table of Contents 3.4.5. Creating a database service from a template 59 3.4.6. MongoDB replication 60 3.4.6.1. Limitations 61 3.4.6.2. Using the example template 61 3.4.6.3. Scale up 62 3.4.6.4. Scale down 62 3.5. MARIADB 63 3.5.1. Overview 63 3.5.2. Versions 63 3.5.3. Images 63 3.5.4. Configuration and Usage 64 3.5.4.1. Initializing the Database 64 3.5.4.2. Running MariaDB Commands in Containers 64 3.5.4.3. Environment Variables 65 3.5.4.4. Volume Mount Points 67 3.5.4.5. Changing Passwords 67 3.5.5. Creating a Database Service from a Template 68 3.5.6. Troubleshooting 69 3.5.6.1. Linux Native AIO Failure 69 .C . H. .A . P. .T .E . R. 4. .O . T. .H . E. .R . .I M. A. .G . E. .S . 7. .1 . 4.1. OVERVIEW 71 4.2. JENKINS 71 4.2.1. Overview 71 4.2.2. Images 71 4.2.3. Configuration and Customization 71 4.2.3.1. Authentication 71 4.2.3.1.1. OpenShift Container Platform OAuth authentication 72 4.2.3.1.2. Jenkins Standard Authentication 72 4.2.3.2. Environment Variables 73 4.2.3.3. Cross Project Access 75 4.2.3.4. Volume Mount Points 75 4.2.3.5. Customizing the Jenkins Image through Source-To-Image 75 4.2.3.6. Configuring the Jenkins Kubernetes Plug-in 77 4.2.3.6.1. Permission Considerations 79 4.2.4. Usage 79 4.2.4.1. Creating a Jenkins Service from a Template 79 4.2.4.2. Using the Jenkins Kubernetes Plug-in 80 4.2.4.3. Memory Requirements 82 4.2.5. Jenkins Plug-ins 82 4.2.5.1. OpenShift Container Platform Client Plug-in 82 4.2.5.2. OpenShift Container Platform Pipeline Plug-in 83 4.2.5.3. OpenShift Container Platform Sync Plug-in 83 4.2.5.4. Kubernetes Plug-in 84 4.3. JENKINS AGENTS 84 4.3.1. Overview 84 4.3.2. Images 84 4.3.3. Configuration and Customization 85 4.3.3.1. Environment Variables 85 4.3.4. Usage 86 4.3.4.1. Memory Requirements 86 4.3.4.1.1. Gradle builds 86 4.3.5. Agent Pod Retention 87 3 OpenShift Container Platform 3.11 Using Images 4.4. OTHER CONTAINER IMAGES 88 4 Table of Contents 5 OpenShift Container Platform 3.11 Using Images CHAPTER 1. OVERVIEW Use these topics to discover the different Source-to-Image (S2I), database, and other container images that are available for OpenShift Container Platform users. Red Hat’s official container images are provided in the Red Hat Registry at registry.redhat.io. OpenShift Container Platform’s supported S2I, database, and Jenkins images are provided in the openshift3 repository in the Red Hat Registry. For example, registry.redhat.io/openshift3/ose for the Atomic OpenShift Application Platform image. The xPaaS middleware images are provided in their respective product repositories on the Red Hat Registry, but suffixed with a -openshift. For example, registry.redhat.io/jboss-eap-6/eap64-openshift for the JBoss EAP image.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    92 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us