# openshift_sandbox **Repository Path**: wangmt2000/openshift_sandbox ## Basic Information - **Project Name**: openshift_sandbox - **Description**: 红帽开源openshift教程中文翻译 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: ocp-4.8 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-26 - **Last Updated**: 2022-06-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenShift Starter Guides for Developers 面向开发人员的 OpenShift 入门指南 原版实验环境支持IBM、Developer Sandbox for Red Hat OpenShift、CodeReady Containers等环境,本实验改为只支持Developer Sandbox for Red Hat OpenShift。 由于国内访问的github的网络原因。读者可以自行clone并部署本手册。 本次研讨会旨在从开发人员的角度向您介绍如何使用OpenShift。 容器是将应用程序及其所有依赖项打包以简化部署和加速交付的标准化方式。与虚拟机不同,容器不绑定到操作系统。只有应用程序代码、运行时、库和设置被打包在容器内。因此,与虚拟机相比,容器更轻量、更便携、更高效。 对于希望启动项目的开发人员,OpenShift 通过简化的工作流程和经过验证的集成实现高效的应用程序开发。 您可以在任何 OpenShift 集群上运行此实验室,无论是托管的还是自管理的,只需尝试一下! image::topology.gif[Workshop Topology] ### Objectives * Using the OpenShift command line (CLI) and Web Console.使用 OpenShift 命令行 (CLI) 和 Web 控制台。 * Deploying an application using a pre-existing Container Image.使用预先存在的容器映像部署应用程序。 * Working with application Labels to identify component parts.使用应用程序标签来识别组件。 * Scaling up your application in order to handle web traffic.扩展您的应用程序以处理网络流量。 * Exposing your application to users outside of the cluster.将您的应用程序暴露给集群外的用户。 * Viewing and working with Logs generated by your application.查看和使用应用程序生成的日志。 * Accessing your application container and interacting with it.访问您的应用程序容器并与之交互。 * Giving access to other users to collaborate on your application.授予其他用户访问权限以在您的应用程序上进行协作。 * Deploying an application from Source Code in a Git repository.从 Git 存储库中的源代码部署应用程序。 * Deploying a Database from the OpenShift Developer Catalog.从 OpenShift 开发人员目录部署数据库。 * Configuring an application so it can access a database.配置应用程序以便它可以访问数据库。 * Setting up Web Hooks to enable automated application builds.设置 Web Hooks 以启用自动化应用程序构建。 * Additional topics may also be covered relevant to the specific programming language used by the applications being deployed.还可能涵盖与正在部署的应用程序使用的特定编程语言相关的其他主题。 以下链接全部指向github上原版实验文档 ## Documentation This workshop is based on link:https://antora.org/[Antora] and link:https://github.com/redhat-scholars/courseware-template[Red Hat scholars template] to build HTML based tutorials. To start this workshop, follow the step by step tutorial link for your cluster available below: [%header,cols=5*] |=== |OpenShift |Java Path |.NET Path |Javascript Path |Python Path |link:https://www.openshift.com/try[OpenShift 4.8] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.8/index.html?PROJECT=workshop[Guide] | | | |link:https://developers.redhat.com/products/codeready-containers/overview[CRC 4.8] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.8/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing&PROJECT=workshop[Guide] | | | |link:https://www.openshift.com/try[OpenShift 4.7] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.7/index.html?PROJECT=workshop[Guide] | | | |link:https://developers.redhat.com/products/codeready-containers/overview[CRC 4.7] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.7/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing&PROJECT=workshop[Guide] | | | |link:https://learn.openshift.com/playgrounds/openshift47/[OpenShift 4.7 Playground] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.7/index.html?USERNAME=admin&PASSWORD=admin&PROJECT=workshop[Guide] | | | |link:https://www.openshift.com/try[OpenShift 4.6] |link:https://redhat-scholars.github.io/openshift-starter-guides/[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-dotnet/[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-javascript/[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-python/[Guide] |link:https://developers.redhat.com/products/codeready-containers/overview[CRC 4.6] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.6/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-dotnet/rhs-openshift-starter-guides-dotnet/4.6/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-javascript/rhs-openshift-starter-guides-javascript/4.6/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-python/rhs-openshift-starter-guides-python/4.6/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing[Guide] |link:https://learn.openshift.com/playgrounds/openshift46/[OpenShift 4.6 Playground] |link:https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.6/index.html?USERNAME=admin&PASSWORD=admin[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-dotnet/rhs-openshift-starter-guides-dotnet/4.6/index.html?USERNAME=admin&PASSWORD=admin[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-javascript/rhs-openshift-starter-guides-javascript/4.6/index.html?USERNAME=admin&PASSWORD=admin[Guide] |link:https://redhat-scholars.github.io/openshift-starter-guides-python/rhs-openshift-starter-guides-python/4.6/index.html?USERNAME=admin&PASSWORD=admin[Guide] |=== ### Lab Parameters This lab supports both link:site.yml#L17[Antora variables] than query parameters. Query params makes the workshop content dynamic, like URLs specific for your cluster to copy and paste. NOTE: In the table above, CRC and Playground links use them. Here's the list of all query params used (they are all optional, but generated links won't work unless at least `CLUSTER_SUBDOMAIN` is set): [%header,cols=2*] |=== |PARAM |Description |`CLUSTER_SUBDOMAIN` |The subdomain for your OpenShift cluster in the form `apps..`, e.g. `apps.openshift.mydomain.tld` |`USERNAME` | The username of your OpenShift cluster |`PASSWORD` | The password for your OpenShift cluster |`LOGIN` | Only for ROKS clusters, the IBM Cloud login URL for authentication |=== Example: https://redhat-scholars.github.io/openshift-starter-guides/rhs-openshift-starter-guides/4.7/index.html?CLUSTER_SUBDOMAIN=apps-crc.testing&USERNAME=developer&PASSWORD=developer&PROJECT=workshop ## Contributing Please refer to the link:CONTRIBUTING.adoc#contributing-guide[how to contribute] on how you can contribute to the tutorial.