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

Updates to instructions #1

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Updates to instructions #1

merged 1 commit into from
Aug 10, 2017

Conversation

alexellis
Copy link
Contributor

  • Included FaaS deployment instuctions

  • Includes instructions for installing CLI

  • Shows one option for installing/testing first, then gives others afterwards if people want the choice.

  • Uses curl to download your gopher image as a test image.

```
$ curl -SL https://raw.githubusercontent.com/johnmccabe/faas-img2ansi/master/images/gopher.png > gopher.png

$ curl localhost:8080/function/img2ansi --data-binary @gopher.png
Copy link
Owner

Choose a reason for hiding this comment

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

the gopher image is in the images dir, if you want to dump the curl and set the @gopher to @images\gopher

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But you don't have to clone this repo to deploy the function/image. That was my thinking.

Copy link
Owner

Choose a reason for hiding this comment

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

ah yeah good point !!


```
# faas-cli -action deploy -image=johnmccabe/faas-img2ansi -name=img2ansi -fprocess="/usr/bin/faas-img2ansi"
200 OK
URL: http://localhost:8080/function/img2ansi
```

### Testing the Function
Copy link
Owner

Choose a reason for hiding this comment

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

I'd bump this up to ##

@johnmccabe
Copy link
Owner

@alexellis thanks for the feedback !!!!

@johnmccabe
Copy link
Owner

Apologies for the mergeup conflict, I'd tweaked some stuff on my phone and didn't notice the PR.

@alexellis
Copy link
Contributor Author

I don't need to show up as a contributor.. but if you can implement the ideas that would be fine too.

@johnmccabe
Copy link
Owner

No worries, I've pushed the rebase to you branch and am 👍 to :shipit: , thanks for the input !

@johnmccabe johnmccabe merged commit 9dbe8cc into johnmccabe:master Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants