搜索

此内容没有您所选择的语言版本。

Chapter 1. Developing using containers and the cloud in CodeReady Studio

download PDF

1.1. Using Red Hat CodeReady Containers tools in CodeReady Studio

Red Hat CodeReady Containers (CRC) brings a minimal OpenShift 4 cluster to your local computer. This cluster provides a minimal environment for development and testing purposes. It is mainly targeted at running on developers' desktops. For other use cases, such as headless, multi-developer or team-based setups, use of the full-fledged OpenShift installer is recommended.

For a more in-depth introduction to OpenShift, see OpenShift documentation.

1.1.1. Downloading and installing Red Hat CodeReady Containers

The following section describes how to set up CodeReady Containers in CodeReady Studio.

Prerequisites

  1. Download the latest release of CodeReady Containers and the pull secret.
  2. Extract the CRC file.

    For more information on how to install and set up CRC, see the Installation chapter of the Getting started with CodeReady Containers Guide.

Procedure

  1. Start CodeReady Studio.
  2. Click Window Show View Other.

    The Show View window appears.

    crs opening servers view
  3. Enter Server in the search field.
  4. Select Servers.
  5. Click Open.

    The Servers view appears.

    crs servers view empty
  6. Right-click any area in the Servers view.

    crs srver view creating new server
  7. Click New Server.

    The Define a New Server window appears.

    crs creating crc server
  8. Select CodeReady Containers 1.0+.
  9. Click Next.

    The CodeReady Containers window appears.

    crs crc server adapter creation
  10. Click Browse to locate the CRC binary.
  11. Click Browse to locate the CRC Pull Secret File.
  12. Click Finish.

Your newly added CodeReady Containers 1.0+ server adapter is now listed in the Servers view.

crs crc server adapter created
Note

In case you did not set up CRC prior to starting the server adapter, you will see a warning: CRC has not been properly initialized!

crs crc warning

Follow the on-screen instructions to initialize CRC.

The instructions prompt you for optional, anonymous usage data collection to assist with development. No personally identifiable information is collected. For information on changing your settings later, visit Red Hat CodeReady Containers - Consent for telemetry data collection.

1.1.2. Using OpenShift Container Platform tools

The following section describes how to use OpenShift Containers in CodeReady Studio.

Prerequisites

Procedure

  1. Start CodeReady Studio.
  2. Start the CRC server adapter.

    crs starting crc server adapter
  3. Click Window Show View Other.

    The Show View window appears.

    crs os explorer view
  4. Enter OpenShift in the search field.
  5. Select OpenShift Explorer.
  6. Click Open.

    The OpenShift Explorer view appears.

    crs os explorer view2

    For information on how to set up a new OpenShift connection, visit Creating a new OpenShift Container Platform connection.

  7. Press Ctrl+N.

    The Select a wizard window appears.

    crs openshift app creation
  8. Enter OpenShift in the search field.
  9. Select OpenShift Application.
  10. Click Next.

    The Sign in to OpenShift window appears.

    crs crc sing in to os
  11. Provide your credentials and click Next.

    The Create OpenShift Project window appears.

    crs new os project window
  12. Name your project.
  13. Click Finish.

    The Select template window appears.

    crs crc os select a template
  14. Select a template.
  15. Click Next.

    The Template Parameters window appears.

    crs template parameters
  16. Ensure that the template parameters are correct.
  17. Click Finish.

    The Create Application Summary window appears.

    crs create application summary
  18. Ensure that the application details are correct.
  19. Click OK.

    The Import OpenShift Application window appears.

    crs import os application
  20. Choose the location for your git repository clone.
  21. Click Finish.

Your newly created OpenShift project and application are now listed in the OpenShift Explorer view.

crs os project created

Additional resources

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.