Installing Che on CodeReady Containers

This article explains how to create a single-node OpenShift cluster with CodeReady Containers to deploy Che.

Remember that single-node OpenShift clusters are suited only for testing or single-user development. Do NOT use such clusters to run Che for organizations or developer teams.

Using CodeReady Containers to configure OpenShift 4

This section describes how to use CodeReady Containers to configure OpenShift 4.

Prerequisites
Procedure
  1. Configure your host machine for CodeReady Containers:

    $ crc setup
  2. Remove any previous cluster:

    $ crc delete
  3. Start the CodeReady Containers virtual machine with at least 12 GB of RAM:

    $ crc start --memory 12288
  4. When prompted, supply your user pull secret.

  5. Take note of the password for the user kubedmin that is displayed at the end of the installation.

  6. Access the OpenShift web console:

    $ crc console
  7. Log in for the first time with the developer account (password: developer) to initialize the first user using OAuth:

    $ oc login --username="developer" --password="developer"
  8. Log out:

    $ oc logout
  9. Log in again with the previously mentioned kubedmin user and password:

    $ oc login --username="kubeadmin" --password="__<kubeadmin-password>__"
  10. Follow the procedure for Installing Che on OpenShift 4 using OperatorHub.

Installing Che on CodeReady Containers using chectl

This section describes how to install Che on CodeReady Containers using chectl.

Prerequisites
Procedure
  • Run the following command:

    $ chectl server:deploy --platform crc --multiuser
    Omit the --multiuser option to install a single-user instance of Che.

Importing certificates to browsers

This section describes how to import a root certificate authority into a web browser to use Che with self-signed TLS certificates.

When a TLS certificate is not trusted, the error message "Your Eclipse Che server may be using a self-signed certificate. To resolve the issue, import the server CA certificate in the browser." blocks the login process. To prevent this, add the public part of the self-signed CA certificate into the browser after installing Che.

Adding certificates to Google Chrome on Linux or Windows

Procedure
  1. Navigate to URL where Che is deployed.

  2. Save the certificate:

    1. Click the warning or open lock icon on the left of the address bar.

    2. Click Certificates and navigate to the Details tab.

    3. Select the top-level certificate which is the Root certificate authority and export it:

      • On Linux, click the Export button.

      • On Windows, click the Save to file button.

  3. Go to Google Chrome Settings, then to the Authorities tab

  4. In the left panel, select Advanced and continue to Privacy and security.

  5. At the center of the screen, click Manage certificates and navigate to Authorities tab.

  6. Click the Import button and open the saved certificate file.

  7. Select Trust this certificate for identifying websites and click the OK button.

  8. After adding the Che certificate to the browser, the address bar displays the closed lock icon next to the URL, indicating a secure connection.

Adding certificates to Google Chrome and Safari on macOS

Procedure
  1. Navigate to URL where Che is deployed.

  2. Save the certificate:

    1. Click the lock icon on the left of the address bar.

    2. Click Certificates.

    3. Select the certificate to use and drag its displayed large icon to the desktop.

  3. Open the Keychain Access application.

  4. Select the System keychain and drag the saved certificate file to it.

  5. Double-click the imported CA, then go to Trust and select When using this certificate: Always Trust.

  6. Restart the browser for the added certificated to take effect.

Adding certificates to Firefox

Procedure
  1. Navigate to URL where Che is deployed.

  2. Save the certificate:

    1. Click the lock icon on the left of the address bar.

    2. Click the > button next to the Connection not secure warning.

    3. Click the More information button.

    4. Click the View Certificate button on the Security tab.

    5. Select the second certificate tab. The certificate Common Name should start with ingress-operator

    6. Click the PEM (cert) link and save the certificate.

  3. Navigate to about:preferences, search for certificates, and click View Certificates.

  4. Go to the Authorities tab, click the Import button, and open the saved certificate file.

  5. Check Trust this CA to identify websites and click OK.

  6. Restart Firefox for the added certificated to take effect.

  7. After adding the Che certificate to the browser, the address bar displays the closed lock icon next to the URL, indicating a secure connection.