4.2. 构建 RStudio 服务器工作台镜像


重要

RStudio ServerCUDA - RStudio Server workbench 镜像目前在 Red Hat OpenShift AI 中作为技术预览功能提供。

注意

当前在断开连接的环境中,RStudio Server workbench 镜像当前不可用。

技术预览功能不受红帽产品服务等级协议(SLA)支持,且功能可能并不完整。红帽不推荐在生产环境中使用它们。这些技术预览功能可以使用户提早试用新的功能,并有机会在开发阶段提供反馈意见。

有关红帽技术预览功能支持范围的更多信息,请参阅技术预览功能支持范围

Red Hat OpenShift AI 包括以下 RStudio Server workbench 镜像:

  • RStudio Server workbench 镜像

    使用 RStudio Server workbench 镜像,您可以访问 RStudio IDE,这是 R 编程语言的集成开发环境。R 用于统计计算和图形来支持数据分析和预测。

    重要

    免责声明: 红帽支持在 OpenShift AI 中管理工作台。但是,红帽不为 RStudio 软件提供支持。RStudio 服务器可以通过 r Studio.org 提供,并遵循其许可条款。在使用此示例工作台前,您应该查看其许可条款。

  • CUDA - RStudio Server workbench 镜像

    使用 CUDA - RStudio Server workbench 镜像,您可以访问 RStudio IDE 和 NVIDIA CUDA Toolkit。RStudio IDE 是用于统计计算和图形的 R 编程语言的集成开发环境。使用 NVIDIA CUDA 工具包,您可以使用 GPU 加速的库和优化工具来增强您的工作。

    重要

    免责声明: 红帽支持在 OpenShift AI 中管理工作台。但是,红帽不为 RStudio 软件提供支持。RStudio 服务器可以通过 r Studio.org 提供,并遵循其许可条款。在使用此示例工作台前,您应该查看其许可条款。

    CUDA - RStudio Server workbench 镜像包含 NVIDIA CUDA 技术。CUDA 许可信息包括在 CUDA Toolkit 文档中。在使用此示例工作台前,您应该查看其许可条款。

要使用 RStudio Server and CUDA - RStudio Server workbench 镜像,您必须首先通过创建 secret 并触发 BuildConfig 来在 OpenShift AI UI 中启用它们,然后通过编辑 r Studio-rhel9 和 cuda-r Studio- rhel9 镜像流在 OpenShift AI UI 中启用。

先决条件

  • 在启动 RStudio 服务器构建过程前,您至少需要 1 个 CPU 和 2Gi 内存( r Studio-server-rhel9 ),以及 1.5 个 CPU 和 8Gi 内存用于集群中 cuda-r Studio-server-rhel9
  • 已登陆到 OpenShift 集群。
  • 在 OpenShift 中具有 cluster-admin 角色。
  • 您有一个有效的 Red Hat Enterprise Linux (RHEL)订阅。

流程

  1. 使用 Subscription Manager 凭证创建 secret。这些通常是您的红帽客户门户网站用户名和密码。

    注: secret 必须命名为 rhel-subscription-secret,其 USERNAMEPASSWORD 键必须采用大写字母。

    oc create secret generic rhel-subscription-secret --from-literal=USERNAME=<username> --from-literal=PASSWORD=<password> -n redhat-ods-applications
    Copy to Clipboard Toggle word wrap
  2. 启动构建:

    1. 启动轻量级 RStudio 服务器构建:

      oc start-build rstudio-server-rhel9 -n redhat-ods-applications --follow
      Copy to Clipboard Toggle word wrap
    2. 要启动启用了 CUDA 的 RStudio 服务器构建,请触发 cuda-rhel9 BuildConfig:

      oc start-build cuda-rhel9 -n redhat-ods-applications --follow
      Copy to Clipboard Toggle word wrap

      cuda-rhel9 构建是 cuda-r Studio-rhel9 的先决条件。cuda-r Studio-rhel9 构建会自动启动。

  3. 使用以下命令确认构建过程成功完成。成功构建显示为 Complete

    oc get builds -n redhat-ods-applications
    Copy to Clipboard Toggle word wrap
  4. 构建成功完成后,使用以下命令使工作台镜像在 OpenShift AI UI 中提供。

    1. 启用 RStudio 服务器工作台镜像:

      oc label -n redhat-ods-applications imagestream rstudio-rhel9 opendatahub.io/notebook-image='true'
      Copy to Clipboard Toggle word wrap
    2. 启用 CUDA - RStudio Server workbench 镜像:

      oc label -n redhat-ods-applications imagestream cuda-rstudio-rhel9 opendatahub.io/notebook-image='true'
      Copy to Clipboard Toggle word wrap

验证

  • 您可以在 Red Hat OpenShift AI 仪表板的 Applications Enabled 菜单中看到 RStudio Server Server and CUDA - RStudio Server 镜像。
  • 您可以在 Data Science Projects Workbenches Create workbench Notebook image Image selection 下拉列表中看到 R Studio ServerCUDA - RStudio Server
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat