Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Update README with curl instructions for Kedge download #165

Merged
merged 1 commit into from
Jul 20, 2017

Conversation

cdrage
Copy link
Collaborator

@cdrage cdrage commented Jul 17, 2017

Updates the README with curl instructions rather than using binary
links.

README.md Outdated
sudo mv ./kedge /usr/local/bin/kedge
```

You can also download Kedge via Go:
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this say download and build?

@cdrage cdrage force-pushed the update-readme-install branch from 1be88b4 to 6faf432 Compare July 17, 2017 15:25
@cdrage
Copy link
Collaborator Author

cdrage commented Jul 17, 2017

@kadel Yeah, it should. Updated!

README.md Outdated
curl -L https://dl.bintray.com/kedgeproject/kedge/latest/kedge-windows-amd64.exe -o kedge

chmod +x kedge
sudo mv ./kedge /usr/local/bin/kedge
Copy link
Member

Choose a reason for hiding this comment

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

is this path available on windows?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, it's not, instructions will only work for macOS or Linux, but leaving those instructions there would be fine.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can just add separate instructions for Windows. And also link to https://curl.haxx.se/download.html where the user can find curl for Windows.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm +1 for having separate blocks of instructions for different OS like done in the minikube link above

README.md Outdated
# Windows
curl -L https://dl.bintray.com/kedgeproject/kedge/latest/kedge-windows-amd64.exe -o kedge

chmod +x kedge
Copy link
Member

Choose a reason for hiding this comment

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

is this possible on windows and mac?

Copy link
Member

Choose a reason for hiding this comment

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

this will work on macOS

Copy link
Collaborator Author

@cdrage cdrage Jul 18, 2017

Choose a reason for hiding this comment

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

Yes it will work on macOS, see how https://kubernetes.io/docs/tasks/tools/install-kubectl/ does it as well. chmod and curl is available on mac.

README.md Outdated
Or you can build it yourself from the master GitHub branch:
```sh
# Linux
curl -L https://dl.bintray.com/kedgeproject/kedge/latest/kedge-linux-amd64 -o kedge
Copy link
Collaborator

Choose a reason for hiding this comment

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

In #162 (comment), I meant something like what minikube does here - https://github.com/kubernetes/minikube#linux

Basically an all in one command, which downloads, renames, sets permissions and puts in $PATH

Copy link
Member

Choose a reason for hiding this comment

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

I prefer having it in multiple commands, as its easier to understand what is happening.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agre with @kadel , I take the inspiration from https://kubernetes.io/docs/tasks/tools/install-kubectl/ in regards to our instructions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, it just makes it very easy for me to update minikube for me just copy pasting that thing, but I'm fine with any way.

@cdrage
Copy link
Collaborator Author

cdrage commented Jul 18, 2017

Hey @surajssd @kadel @containscafeine

I take inspiration by how https://kubernetes.io/docs/tasks/tools/install-kubectl/ does it in regards to their kubectl installation. Following how other projects from the incubator / k8s project does it. Makes sense having multiple commands as well instead of an all-in-one command / curl https://foobar.com/script.sh | sh.

@surajssd
Copy link
Member

@cdrage so what are you exactly planning to do here?

@cdrage
Copy link
Collaborator Author

cdrage commented Jul 18, 2017

@surajssd I'd suggest an alternative way of how to deploy Windows, but otherwise, I don't think we should change anything (except Windows portion). Keep it similar to https://kubernetes.io/docs/tasks/tools/install-kubectl/

Any suggestions?

@surajssd
Copy link
Member

surajssd commented Jul 19, 2017

@cdrage yes SGTM, change only windows and keep rest similar

@cdrage cdrage force-pushed the update-readme-install branch from 6faf432 to c3135db Compare July 19, 2017 17:21
@cdrage
Copy link
Collaborator Author

cdrage commented Jul 19, 2017

@surajssd Updated.

README.md Outdated
curl -L https://dl.bintray.com/kedgeproject/kedge/latest/kedge-darwin-amd64 -o kedge

# Windows
curl -L https://dl.bintray.com/kedgeproject/kedge/latest/kedge-windows-amd64.exe -o kedge
Copy link
Member

Choose a reason for hiding this comment

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

standard windows installation doesn't have curl :-(

README.md Outdated

# Windows
# Copy kedge to your %GOPATH/bin directory
move kedge %GOPATH%/bin/kedge
Copy link
Member

Choose a reason for hiding this comment

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

This is assuming that user has golang installed. Most users won't have that.

Copy link
Member

Choose a reason for hiding this comment

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

For windows, it might be better to have just plain English sentence explaining what to do, and leave to rest on the user.

similarly to whats in minikube or kubectl :

Download the [kedge-windows-amd64.exe][Bintray Latest Windows] file, rename it to kedge.exe and add it to your PATH.

Updates the README with `curl` instructions rather than using binary
links.
@cdrage cdrage force-pushed the update-readme-install branch from c3135db to 785f472 Compare July 20, 2017 13:13
@cdrage
Copy link
Collaborator Author

cdrage commented Jul 20, 2017

@kadel Please review again, I've updated the docs. Hopefully the last time for updating! Added separate Windows instructions.

@kadel kadel merged commit 83859a8 into kedgeproject:master Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants