OpenShift Starter Guides for Developers 面向开发人员的 OpenShift 入门指南

原版实验环境支持IBM Cloud、Developer Sandbox for Red Hat OpenShift、CodeReady Containers等环境,本实验改为只支持Developer Sandbox for Red Hat OpenShift。 由于国内访问的github的网络原因。您可以自行clone gh-page分支并部署本手册。gitee链接

本次实验旨在从开发人员的角度向您介绍如何使用OpenShift。

容器是将应用程序及其所有依赖项打包以简化部署和加速交付的标准化方式。与虚拟机不同,容器不绑定到操作系统。只有应用程序代码、运行时、库和设置被打包在容器内。因此,与虚拟机相比,容器更轻量、更便携、更高效。

对于希望启动项目的开发人员,OpenShift 通过简化的工作流程和经过验证的集成实现高效的应用程序开发。

您可以在任何 OpenShift 集群上运行此实验室,无论是托管的还是自管理的,只需尝试一下!

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 以启用自动化应用程序构建。(国内由于网络原因可能无法注册github)

  • Additional topics may also be covered relevant to the specific programming language used by the applications being deployed.

还可能涵盖与正在部署的应用程序使用的特定编程语言相关的其他主题。

以下链接全部指向github上原版实验文档,如果您的网络环境可以登录github,可以简单的fork官方文档,官方已经配置好GitHub workflow,简单的修改地址就可以发布page。或者clone 文档,在本地通过docker编译,运行。

Documentation

This workshop is based on Antora and 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:

OpenShift Java Path .NET Path Javascript Path Python Path

OpenShift 4.8

Guide

CRC 4.8

Guide

OpenShift 4.7

Guide

CRC 4.7

Guide

OpenShift 4.7 Playground

Guide

OpenShift 4.6

Guide

Guide

Guide

Guide

CRC 4.6

Guide

Guide

Guide

Guide

OpenShift 4.6 Playground

Guide

Guide

Guide

Guide

Lab Parameters

This lab supports both Antora variables than query parameters. Query params makes the workshop content dynamic, like URLs specific for your cluster to copy and paste.

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):

PARAM Description

CLUSTER_SUBDOMAIN

The subdomain for your OpenShift cluster in the form apps.<cluster_name>.<base_domain>, 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:

Contributing

Please refer to the how to contribute on how you can contribute to the tutorial.