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 odo installation docs #4923

Merged

Conversation

valaparthvi
Copy link
Contributor

What type of PR is this?
/kind documentation

What does this PR do / why we need it:
This PR adds odo installation docs.
Which issue(s) this PR fixes:

Fixes part of #4894

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

  • Update changelog

  • I have read the test guidelines

How to test changes / Special notes to the reviewer:

$ cd website/docs
# if you are doing it for the first time
$ npm install # this command installs dependencies required to create the website
$ npm run start

Go to Getting Started > Installations

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. kind/documentation needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Jul 19, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jul 19, 2021
@valaparthvi valaparthvi changed the title WIP: Add odo installation docs Add odo installation docs Jul 22, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jul 22, 2021
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
```
5. Run the command to verify that it was installed properly.
```shell
odo
Copy link
Contributor

Choose a reason for hiding this comment

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

Running odo version would help the user check that he doesn't have a previously installed one he completely forgot in another PATH's directory.

Copy link
Member

Choose a reason for hiding this comment

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

To run the odo binary built from the source, the user would have to do ./odo and not odo.

  • ./odo refers to the one built using steps mentioned here.
  • odo refers to a previously installed binary that is already present in PATH.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

./odo would this also be true for windows?

Copy link
Contributor

Choose a reason for hiding this comment

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

To run the odo binary built from the source, the user would have to do ./odo and not odo.

  • ./odo refers to the one built using steps mentioned here.
  • odo refers to a previously installed binary that is already present in PATH.

But the step make install has installed odo in $GOPATH/bin, which is, probably, in the PATH

Copy link
Member

Choose a reason for hiding this comment

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

But the step make install has installed odo in $GOPATH/bin, which is, probably, in the PATH

Ah. Totally missed that. I use make && cp -f odo ~/bin/odo on my local system so I was under that mindset.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am a little confused about this discussion. Does the current content look okay?

Copy link
Member

Choose a reason for hiding this comment

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

Yes.

website/docs/getting-started/installation.md Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
```
5. Run the command to verify that it was installed properly.
```shell
odo
Copy link
Member

Choose a reason for hiding this comment

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

To run the odo binary built from the source, the user would have to do ./odo and not odo.

  • ./odo refers to the one built using steps mentioned here.
  • odo refers to a previously installed binary that is already present in PATH.

…sing links, and work on changes requested to the PR
@netlify
Copy link

netlify bot commented Jul 23, 2021

✔️ Deploy Preview for odo-docusaurus-preview ready!

🔨 Explore the source changes: cf387b2

🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/60fad92e6cc08a0008317aa6

😎 Browse the preview: https://deploy-preview-4923--odo-docusaurus-preview.netlify.app

website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved
website/docs/getting-started/installation.md Outdated Show resolved Hide resolved

### Installing odo on Windows
1. Download the [odo-windows-amd64.exe](https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-windows-amd64.exe) file.
2. Rename the downloaded file to odo.exe and move it to a folder of choice, for example C:\odo
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Rename the downloaded file to odo.exe and move it to a folder of choice, for example C:\odo
2. Rename the downloaded file to odo.exe and move it to a folder of choice, for example `C:\odo`.

4. Click **New**, add the location where you copied the odo binary (e.g. `C:\odo` in [Step 2 of Installation](#installing-odo-on-windows) into the field or click **Browse** and select the directory, and click **OK**.

#### Setting the PATH variable in Windows 7/8
1. Click **Start** and in the Search box types `Advance System Settings`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1. Click **Start** and in the Search box types `Advance System Settings`.
1. Click **Start** and in the Search box type `Advanced System Settings`.


#### Setting the PATH variable in Windows 7/8
1. Click **Start** and in the Search box types `Advance System Settings`.
2. Select **Advanced systems settings** and click the **Environment Variables** button at the bottom.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Select **Advanced systems settings** and click the **Environment Variables** button at the bottom.
2. Select **Advanced Systems Settings** and click the **Environment Variables** button at the bottom.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#### Setting the PATH variable in Windows 7/8
1. Click **Start** and in the Search box types `Advance System Settings`.
2. Select **Advanced systems settings** and click the **Environment Variables** button at the bottom.
3. Select the **Path** variable from the **System variable** section and click **Edit**.
Copy link
Member

Choose a reason for hiding this comment

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

Is it really "System variable"? I don't know, so I'm asking. But I think it might be "System Variables".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure. I copy-pasted this from the old website.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is System variables. See the 4th image here https://www.groovypost.com/howto/set-path-system-variable-windows-7-8/.

@sonarcloud
Copy link

sonarcloud bot commented Jul 23, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
6.3% 6.3% Duplication

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 23, 2021
@dharmit
Copy link
Member

dharmit commented Jul 26, 2021

@feloy I'll let you decide about approving this PR.

@feloy
Copy link
Contributor

feloy commented Jul 27, 2021

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jul 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feloy

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jul 27, 2021
@openshift-merge-robot openshift-merge-robot merged commit b2ca2a8 into redhat-developer:main Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants