Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quick start guides for new adopters #87

Merged
merged 34 commits into from
May 26, 2023

Conversation

michael-valdron
Copy link
Member

@michael-valdron michael-valdron commented Apr 19, 2023

What does this PR do / why we need it

Create quick start guides for writing devfiles using odo v3 and Eclipse Che. This is to give the new adopter a practical exercise for learning how to write a simple devfile.

Additional changes

  • A recent update to the hotReloadCapable attribute description in the spec has updated the comments in the spec models

Which issue(s) does this PR fix

Fixes #?

fixes devfile/api#1057

PR acceptance criteria

  • Unit Tests
  • E2E Tests
  • Documentation
    Update the sidebar if there is a new file added or an existing filename is changed

How to test changes / Special notes to the reviewer

@nx-cloud
Copy link

nx-cloud bot commented Apr 19, 2023

☁️ Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

CI is running/has finished running commands for commit e52a584. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 5 targets

Sent with 💌 from NxCloud.

@michael-valdron michael-valdron force-pushed the helloworld-example-doc branch 2 times, most recently from 1a4628e to 49a821f Compare April 27, 2023 21:01
@michael-valdron michael-valdron changed the title [WIP]Add hello world example guide for new adopters Add hello world example guide for new adopters Apr 27, 2023
@michael-valdron michael-valdron marked this pull request as ready for review April 27, 2023 21:02
@openshift-ci openshift-ci bot requested review from elsony and maysunfaisal April 27, 2023 21:02
@maysunfaisal
Copy link
Member

Might be a good idea to provide link to Sandbox and also instructions to Che setup

libs/docs/src/docs/2.1.0/helloworld-example-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.1.0/helloworld-example-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.1.0/helloworld-example-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.1.0/helloworld-example-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/no-version/helloworld-example-odo.md Outdated Show resolved Hide resolved
libs/docs/src/docs/no-version/helloworld-example-odo.md Outdated Show resolved Hide resolved
libs/docs/src/navigation/2.1.0.yaml Outdated Show resolved Hide resolved
@michael-valdron michael-valdron force-pushed the helloworld-example-doc branch from 0a41523 to 0c38652 Compare May 2, 2023 15:40
@michael-valdron michael-valdron changed the title Add hello world example guide for new adopters Add quick start guides for new adopters May 3, 2023
@michael-valdron michael-valdron requested a review from mike-hoang May 3, 2023 20:34
@michael-valdron
Copy link
Member Author

Waiting on reviews from members of odo and Eclipse Che teams.

4. Create a devfile with the filename `.devfile.yaml`. Add the [`schemaVersion`](./devfile-schema#schema-version) field with the desired devfile specification version to use

```yaml {% filename=".devfile.yaml" %}
schemaVersion: <version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are showing snippets of the devfile content, it might be better to make it easier for users and include the actually version

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are showing snippets of the devfile content, it might be better to make it easier for users and include the actually version

It will include the actual schema version, <version> is a placeholder for printing the selected schema version dynamically in that spot. So if you load the site under the 2.2.0 doc pages, <version> will be replaced by 2.2.0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, did not know that. That is really smart 👍

@openshift-ci openshift-ci bot removed the lgtm label May 4, 2023
@michael-valdron michael-valdron requested a review from kadel May 4, 2023 20:11
Copy link
Contributor

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, the Eclipse Che portion is somewhat out of date with current/upcoming releases. I'll share this PR with the team for more detailed review.

libs/docs/src/docs/2.1.0/quickstart-che.md Outdated Show resolved Hide resolved
Comment on lines 27 to 29
5. Go to 'Edit the workspace' and view the devfile. The devfile should be populated with content similar to the following
- The `schemaVersion` of the devfile should be left to what Eclipse Che supports, currently `2.1.0`
- The `metadata.namespace` field is the target namespace your project will be deployed in, for our current intent and purposes this can be left alone
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step will not work in Eclipse Che -- eclipse-che/che#22115. I believe the plan going forward is to allow editing the devfile from within the workspace itself (using the Code editor, for example) but I'm not 100% sure of the status of this feature.

Also, to add, Che currently uses devfile 2.2.0 schema -- the display in the edit page is a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step will not work in Eclipse Che -- eclipse/che#22115. I believe the plan going forward is to allow editing the devfile from within the workspace itself (using the Code editor, for example) but I'm not 100% sure of the status of this feature.

Also, to add, Che currently uses devfile 2.2.0 schema -- the display in the edit page is a bug.

Thanks for your review @amisevsk!

Seems like the version of Eclipse Che under Red Hat Dev Spaces is an older version that is still on devfile spec 2.1.0, I will need to write up revised draft for the current 2.1.0 guide as well as a new guide under 2.2.0 to cover the up to date content: devfile/api#1057 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the version of Eclipse Che under Red Hat Dev Spaces is an older version that is still on devfile spec 2.1.0, I will need to write up revised draft for the current 2.1.0 guide as well as a new guide under 2.2.0 to cover the up to date content: devfile/api#1057 (comment)

Update: devfile/api#1057 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: devfile/api#1057 (comment)

@amisevsk I need a review of the recent changes when you are able to, thank you.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron changed the title [WIP]Add quick start guides for new adopters Add quick start guides for new adopters May 16, 2023
@michael-valdron michael-valdron marked this pull request as ready for review May 16, 2023 06:39
@openshift-ci openshift-ci bot requested a review from johnmcollier May 16, 2023 06:39
@michael-valdron michael-valdron requested a review from amisevsk May 16, 2023 06:39
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.2.0/quickstart-che.md Outdated Show resolved Hide resolved
libs/docs/src/docs/2.1.0/quickstart-sandbox.md Outdated Show resolved Hide resolved
Copy link
Contributor

@l0rd l0rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael-valdron the Devfile with Eclipse Che getting started article is really nice 👏

michael-valdron and others added 4 commits May 24, 2023 15:30
container component revisions:
* rename 'runtime' to 'dev-tooling'
* change image tag 'ubi8-latest' to 'latest'

Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
expand description of `universal-developer-image` to add more context to why Eclipse Che uses it

Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
reword opening to defining commands in Eclipse Che to improve clarity of why it is done

Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
revise 'id' description to not refer to it as a 'label' to avoid confusion with the 'label' field

Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron force-pushed the helloworld-example-doc branch from 8dea25a to 1e6a67f Compare May 24, 2023 19:33
michael-valdron and others added 4 commits May 24, 2023 15:55
remove incorrect note about execution order of commands, Eclipse Che executes commands individually with the user manually triggering them

Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…it replaced with a guide from the Eclipse Che documentation for getting started with 'Eclipse Che hosted by Red Hat'

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron force-pushed the helloworld-example-doc branch from 93d43b2 to f526fdd Compare May 24, 2023 19:57
@michael-valdron michael-valdron requested a review from l0rd May 24, 2023 20:00
@openshift-ci openshift-ci bot added the lgtm label May 24, 2023
Copy link
Contributor

@l0rd l0rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 LGTM

…the new developer persona.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label May 26, 2023
@openshift-ci openshift-ci bot added the lgtm label May 26, 2023
@openshift-ci
Copy link

openshift-ci bot commented May 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kadel, l0rd, michael-valdron, mike-hoang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@michael-valdron michael-valdron merged commit ca17714 into devfile:main May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add concrete "hello world" example to App Developer getting started guide
7 participants