Skip to content

Commit

Permalink
format, language and structure about Hosted Che (#1)
Browse files Browse the repository at this point in the history
* format, language and structure about Hosted Che

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* FAQ belongs to rh-che repository

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* review Hosted Che documentation

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* Update src/main/pages/che-7/overview/assembly_hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating_workspace_from_template_in_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/ref_hosted_che_faq.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_linking_github_account_in_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_linking_github_account_in_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_linking_github_account_in_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_registering_to_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_registering_to_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/ref_about_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/ref_about_hosted_che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Review Hosted Che. Integrate comments from @rkratky

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* Update src/main/pages/che-7/overview/proc_importing-projects-from-github-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-worskpace-from-the-user-dashboard.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Review Hosted Che. Integrate comments from @rkratky

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-worskpace-from-the-user-dashboard.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/ref_about-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/ref_about-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-worskpace-from-the-user-dashboard.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-worskpace-from-the-user-dashboard.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-worskpace-from-the-user-dashboard.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_importing-projects-from-github-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_importing-projects-from-github-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_importing-projects-from-github-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_importing-projects-from-github-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Review Hosted Che. Integrate comments from @rkratky

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* Review Hosted Che. Integrate comments from @rkratky

Signed-off-by: Fabrice Flore-Thébault <[email protected]>

* Update src/main/pages/che-7/overview/proc_creating-a-workspace-from-template-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* Update src/main/pages/che-7/overview/proc_contributing-to-github-projects-in-hosted-che.adoc

Co-Authored-By: Robert Kratky <[email protected]>

* fix broken links

Signed-off-by: Fabrice Flore-Thébault <[email protected]>
  • Loading branch information
themr0c authored and ibuziuk committed Jul 11, 2019
1 parent 8675fab commit 9a18cda
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 99 deletions.
6 changes: 3 additions & 3 deletions src/main/_data/sidebars/che_7_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ entries:
- title: Che quick-starts
url: che-quick-starts.html
output: web
# - title: Hosted Che
# url: hosted-che.html
# output: web
- title: Hosted Che
url: hosted-che.html
output: web
# - title: Che architecture
# url: che-architecture.html
# output: web
Expand Down
Binary file removed src/main/images/hosted-che/gh-account-linking.png
Binary file not shown.
Binary file removed src/main/images/hosted-che/registration-1.png
Binary file not shown.
Binary file removed src/main/images/hosted-che/registration-2.png
Binary file not shown.
Binary file removed src/main/images/hosted-che/registration-3.png
Binary file not shown.
115 changes: 19 additions & 96 deletions src/main/pages/che-7/overview/assembly_hosted-che.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,115 +8,38 @@ folder: che-7/overview
summary:
---

[id="hosted-che"]
= Hosted Che

"Hosted Che" is link:https://www.eclipse.org/che/[Eclipse Che] hosted by Red Hat. Che server is running on OpenShift Dedicated and user base is spread across multiple OpenShift Online clusters where workspaces are created.

[id="terms-of-service"]
== Terms of Service

"Hosted Che" has the following usage limits and terms of service:

- Storage: `1GB`
- RAM: `3GB`
- CPU: `6 Cores`
- Concurrent workspaces: `1`
- Number of workspaces: `Unlimited`
- Number of projects per workspace: `Unlimited`
- Usage time limit: `Unlimited`
- Maximum Account Inactivity period: `30 days`

NOTE: If a user does not login to "Hosted Che" for more than 30 days the account will be automatically deprovisioned and all existing workspaces will be lost. In order to start using "Hosted Che" again, a user will need to re-register.

- Workspace Idling time: `15 minutes`

NOTE: Once started workspace can be used for an unlimited period of time. However, if there are no interactions with IDE workspace will be gracefully stopped after 15 minutes.

- Ephemeral by default

NOTE: In the ephemeral mode workspace has no PVC attached, which means that all changes to the source code will be lost when the workspace is stopped unless they are pushed to a source code repository. This is done in order to improve the performance of a workspace startup and file system operations inside the IDE. User can disable ephemeral mode using the dedicated toggle during the workspace creation process from the "User Dashboard".

image::hosted-che/ephemeral-toggle.png[]

[id="registration"]
== Register to Hosted Che

- Navigate to https://che.openshift.io/.
- Log in with your existing OpenShift Online, Red Hat Developer Program, or Red Hat Customer Portal account, or register for a Red Hat account if you don't have one already.

image::hosted-che/registration-1.png[]

- In the next screen, activate your account by clicking on the *ACTIVATE ACCOUNT* button.
:parent-context-of-hosted-che: {context}

image::hosted-che/registration-2.png[]

- Once your environment is being built and then complete, you will receive an email with a link to connect to your Eclipse Che instance.

- Follow the link and the email and start to use Hosted Che by clicking on the *Get Started* button which will redirect you to the User Dashboard.

image::hosted-che/registration-3.png[]

[id="getting-started"]
== Getting started
Follow the wizard to create a workspace from the "User Dashboard":

image::hosted-che/getting-started-ud.png[]

You can also create a workspace from a predefined link:https://www.eclipse.org/che/getting-started/cloud/[Getting started] devfiles which provides a various set of the programming languages and frameworks:

- Navigate to https://www.eclipse.org/che/getting-started/cloud/
- Choose the desired flavor and launch your new Workspace.

image::hosted-che/getting-started-devfile.png[]

[id='github-account-linking']
== Link your GitHub Account

You can also link your account and import projects directly from GitHub during workspace creation from the "User Dashboard":

image::hosted-che/gh-account-linking.png[]

NOTE: In order to push the source code to GitHub from IDE you will need to generate SSH keys using the link:https://github.com/eclipse/che-theia/tree/master/plugins/ssh-plugin[SSH Plug-in] and upload the public key to your GitHub account (`Settings` -> `SSH and GPG keys` -> `New SSH key`). See link:end-user-tasks.html#configuring-your-vcs-credentials-for-your-workspaces_end-user-tasks[Configuring your VCS credentials for your workspaces] to learn more.

[id='faq']
== Frequently Asked Questions (FAQs) and Troubleshooting
[id="hosted-che_{context}"]
= Hosted Che

=== Is "Hosted Che" running on OpenShift?
This guide describes some procedures to get started with Hosted{nbsp}Che that are not covered by link:using-developer-environments-workspaces.html[Using developer environments - workspaces].

Yes, "Hosted Che" is the https://www.eclipse.org/che/[Eclipse Che] hosted by Red Hat. Che server is running on OpenShift Dedicated and user base is spread across multiple OpenShift Online clusters where workspaces are created.
It starts with a general overview of Eclipse{nbsp}Che terms of service.

=== Where can I see the up-to-date status of the che.openshift.io?
Then the two main options to create a workspace are covered:

There is a dedicated status page - https://che.statuspage.io/
. Creating a worskpace from the user dashboard.

=== How do I figure out where my workspace is running?
. Creating a workspace from a template.

In order to do this, one needs to execute the following `curl` request using `username` or `email` as a parameter:
Some outline is then given on how to start working with GitHub projects.

----
curl -sgSL "https://api.openshift.io/api/users?filter[username]=<username>" | jq -r ".data[0].attributes.cluster"
----
include::ref_about-hosted-che.adoc[leveloffset=+1]

Or
include::proc_registering-to-hosted-che.adoc[leveloffset=+1]

----
curl -sgSL "https://api.openshift.io/api/users?filter[email]=<email>" | jq -r ".data[0].attributes.cluster"
----
include::proc_creating-a-worskpace-from-the-user-dashboard.adoc[leveloffset=+1]

The result of the request will be the OpenShift Online cluster URL e.g. `https://api.starter-us-east-2.openshift.com/`
include::proc_creating-a-workspace-from-template-in-hosted-che.adoc[leveloffset=+1]

Once user login to the underlying cluster he will get the `view` access in the `<username>-che` namespace where all workspace related pods are created.
include::proc_importing-projects-from-github-in-hosted-che.adoc[leveloffset=+1]

=== Can not login to che.openshift.io - `Authorization token is missed`
include::proc_contributing-to-github-projects-in-hosted-che.adoc[leveloffset=+1]

To authenticate in https://che.openshift.io, you need to allow cookies from
`static.developers.redhat.com`.
[discrete]
== Additional resources

In case these cookies are blocked (by a browser extension like https://www.eff.org/privacybadger[Privacy Badger]),
authentication fails with following error:
* Frequently Asked Questions (FAQs) and Troubleshooting can be found on the following link:https://github.com/redhat-developer/rh-che/blob/master/FAQ.adoc[link].

----
Authorization token is missed
Click here to reload page.
----
* For general end-user guidance see link:using-developer-environments-workspaces.html[Using developer environments - workspaces].
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

// This module can be included from assemblies using the following include statement:
// include::proc_contributing-to-github-projects-in-hosted-che.adoc[leveloffset=+1]

[id="contributing-to-github-projects-in-hosted-che_{context}"]
= Contributing to GitHub projects in Hosted Che

This section describes how to contribute to GitHub projects in Hosted Che.

[discrete]
== Prerequisites

* A workspace running in Hosted{nbsp}Che, including a project imported from GitHub. See link:hosted-che.html#importing-projects-from-github-in-hosted-che_{context}[Importing projects from GitHub in Hosted{nbsp}Che].

* The link:https://github.com/eclipse/che-theia/tree/master/plugins/ssh-plugin[SSH Plug-in] is installed in the workspace.

[discrete]
== Procedure

. Generate an SSH key pair with the link:https://github.com/eclipse/che-theia/tree/master/plugins/ssh-plugin[SSH Plug-in].

. Upload the public key to the GitHub account following the link:https://help.github.com/en/articles/adding-a-new-ssh-key-to-your-github-account[Adding a new SSH key to your GitHub account] procedure.

[discrete]
== Additional resources

* To learn more, see link:end-user-tasks.html#configuring-your-vcs-credentials-for-your-workspaces_end-user-tasks[Configuring your VCS credentials for your workspaces].
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

// This module can be included from assemblies using the following include statement:
// include::proc_creating-a-workspace-from-template-in-hosted-che.adoc[leveloffset=+1]

[id="creating-a-workspace-from-template-in-hosted-che_{context}"]
= Creating a workspace from a template in Hosted Che

This section describes how to create a workspace from a predefined link:https://www.eclipse.org/che/getting-started/cloud/[template].

Various programming languages and frameworks are supported.

[discrete]
== Prerequisites

* Existing Hosted{nbsp}Che account. See link:hosted-che.html#registering-to-hosted-che_{context}[Registering to Hosted{nbsp}Che].

[discrete]
== Procedure

. Navigate to the link:https://www.eclipse.org/che/getting-started/cloud/[templates registry].

. Choose the desired flavor.

. Click the btn:[Launch Workspace] button.

. The workspace is created and displayed in Hosted{nbsp}Che.

image::hosted-che/getting-started-devfile.png[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

// This module can be included from assemblies using the following include statement:
// include::<path>/proc_creating-a-worskpace-from-the-user-dashboard.adoc[leveloffset=+1]

[id="creating-a-worskpace-from-the-user-dashboard_{context}"]
= Creating a worskpace from the user dashboard

This section describes how to create a workspace from the user dashboard in Hosted{nbsp}Che.

[discrete]
== Prerequisites

* Existing Hosted{nbsp}Che account. See link:hosted-che.html#registering-to-hosted-che_{context}[Registering to Hosted{nbsp}Che].

[discrete]
== Procedure

. Navigate to the link:https://che.openshift.io/dashboard/[Hosted{nbsp}Che user dashboard].

. Click the btn:[Create Workspace] button.

. Define a *Name* for the workspace. A generated name is proposed. It can be modified.

. In the *Stack* section, select the workspace runtime environment that will be used to build and run projects from the list.

. In the *RAM* section, adapt the memory available for the workspace runtime environment within the limits defined in the link:hosted-che.html#terms-of-service_{context}[terms of service].

. In the *Ephemeral mode* section, choose to have persistent storage attached or not.

. In the *Projects* section, choose the projects to integrate in the workspace. For the specific GitHub case, see link:#importing-projects-from-github-in-hosted-che_{context}[Importing projects from GitHub in Hosted Che].

[discrete]
== Additional resources

* For more details, see link:using-developer-environments-workspaces.html[Using developer environments - workspaces].
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

// This module can be included from assemblies using the following include statement:
// include::<path>/proc_importing-projects-from-github-in-hosted-che.adoc[leveloffset=+1]

[id="importing-projects-from-github-in-hosted-che_{context}"]
= Importing projects from GitHub in Hosted Che

This section describes how to import a GitHub project in Hosted Che.

This action can be done during the creation of a new workspace, or later, on an existing workspace.

[discrete]
== Prerequisites

* Existing Hosted{nbsp}Che account. See link:hosted-che.html#registering-to-hosted-che_{context}[Registering to Hosted{nbsp}Che].

* Existing GitHub account.

[discrete]
== Procedure

. Navigate to the *Projects* section of the *New Workspace* creation screen.
+
Alternatively if the workspace is already existing, navigate to the *Projects* section of the *Configure Workspace* screen.

. Click the btn:[Add Project] button.

. Navigate to the *GitHub* tab.

. Click the btn:[Connect your GitHub account] button.

. In the popup, review the settings and click the btn:[Authorize openshiftio] button.

. Type in the password as requested and click the btn:[Confirm password] button.

. Select the desired repositories and click the btn:[Add] button.
28 changes: 28 additions & 0 deletions src/main/pages/che-7/overview/proc_registering-to-hosted-che.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

[id="registering-to-hosted-che_{context}"]
= Registering to Hosted{nbsp}Che

This section describes how to register to Hosted{nbsp}Che.

[discrete]
== Prerequisites

* Existing OpenShift{nbsp}Online, Red{nbsp}Hat Developer{nbsp}Program, or Red{nbsp}Hat Customer{nbsp}Portal account.

[discrete]
== Procedure

. Navigate to link:https://che.openshift.io/[Hosted{nbsp}Che].

. Log in with the existing OpenShift{nbsp}Online, Red{nbsp}Hat Developer{nbsp}Program, or Red{nbsp}Hat Customer{nbsp}Portal account.

. Click the btn:[Activate account] button.

. Wait for an email with a link to connect to the Eclipse{nbsp}Che instance. It is sent once the environment is ready for use.

. Follow the *Get Started* link in the email.

. The Hosted{nbsp}Che user dashboard is displayed.
50 changes: 50 additions & 0 deletions src/main/pages/che-7/overview/ref_about-hosted-che.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Module included in the following assemblies:
//
// assembly_hosted-che.adoc

// This module can be included from assemblies using the following include statement:
// include::proc_about-hosted-che.adoc[leveloffset=+1]

[id="about-hosted-che_{context}"]
= About Hosted Che

Hosted{nbsp}Che is link:https://www.eclipse.org/che/[Eclipse{nbsp}Che] hosted by Red{nbsp}Hat.
A Che server is running on OpenShift{nbsp}Dedicated, and the user base is spread across multiple OpenShift{nbsp}Online clusters where workspaces are created.

[id="terms-of-service_{context}"]
== Terms of service

Hosted{nbsp}Che has the following usage limits and terms of service:

* Storage: 1 GB
* RAM: 3 GB
* CPU: 6 Cores
* Concurrent workspaces: 1
* Number of workspaces: unlimited
* Number of projects per workspace: unlimited
* Usage time limit: none
* Maximum account inactivity period: 30 days
+
[NOTE]
====
Hosted{nbsp}Che automatically deprovisions accounts that have been inactive for more than 30 days. All existing workspaces in a deprovisioned account are lost.
To start using Hosted{nbsp}Che again, a user needs to re-register.
====
* Workspace idling time: 15 minutes
+
[NOTE]
====
A started workspace can be used for an unlimited period of time.
When there are no interactions with the IDE, the workspace is stopped after 15 minutes.
====
* Ephemeral mode: defaults to *Active*
+
[NOTE]
====
In ephemeral mode, workspaces have no persistent storage attached.
All content changes are lost when the workspace is stopped unless they are pushed to a source-code repository first.
This is done to improve the performance of workspace starts and file-system operations in the IDE.
It is possible to disable ephemeral mode while link:hosted-che.html#creating-a-worskpace-from-the-user-dashboard_{context}[creating a workspace from the user dashboard].
For more information about ephemeral mode, including how to disable it after workspace creation, see link:using-developer-environments-workspaces.html[Using developer environments - workspaces TODO].
====

0 comments on commit 9a18cda

Please sign in to comment.