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

Edits to Thumbnailer sample #231

Merged
merged 7 commits into from
Jul 25, 2018
Merged

Edits to Thumbnailer sample #231

merged 7 commits into from
Jul 25, 2018

Conversation

samodell
Copy link
Contributor

Edit Thumbnailer sample

@google-prow-robot google-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved labels Jul 20, 2018
@google-prow-robot google-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 20, 2018
@samodell samodell changed the title [WIP] Edits to Thumbnailer sample Edits to Thumbnailer sample Jul 20, 2018
@google-prow-robot google-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 20, 2018
@samodell
Copy link
Contributor Author

/assign @labadav

@@ -1,44 +1,55 @@
# Thumbnailer Demo
Copy link
Contributor

@rgregg rgregg Jul 22, 2018

Choose a reason for hiding this comment

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

I think the point of this demo is the ability to bring in the underlying dependencies (e.g. ffmpeg) -- since this is something many platforms don't allow you to do.

Ideally the title (and description) would reflect that scenario.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this to the intro and updated the title; let me know if my wording makes sense!

@@ -1,44 +1,55 @@
# Thumbnailer Demo

Thumbnailer demo is a walk-through example on how to deploy a 'dockerized' application to the Knative Serving service. In this demo we will use a sample `golang` application that takes video URL as an input and generates its thumbnail image.
This is a walk-through example that demonstrates deploying a dockerized
application to the Knative Serving service. In this demo we will use a sample
Copy link
Contributor

Choose a reason for hiding this comment

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

Knative Serving, I'd drop the 'service' since we overload that term already.


## Sample Code
* [Install Knative Serving](../../../install/README.md)
* [Install Go](https://golang.org/doc/install) (if you want to run and test the sample app locally)
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll also need ffmpeg installed locally.


### App code
In this demo we are going to use a simple `golang` REST app called
[rester-tester](https://github.com/mchmarny/rester-tester). It's important
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should be linking to non-knative repos. Can we pull the relevant code / configuration into this folder so we don't need to cross-reference?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, we can rename it when we do that to something that fits the scenario.

Copy link
Contributor Author

@samodell samodell Jul 23, 2018

Choose a reason for hiding this comment

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

So there's a lot going on in Rester Tester: https://github.com/mchmarny/rester-tester

I'm not 100% sure what to copy into this sample repo and what to leave behind. For example, if I were to copy all the files, would I want to bring along the .gcloudignore, .gitignore, and .travis.yml files? And rester-tester also includes the ability to calculate prime numbers; could I leave that folder out since this sample doesn't use that functionality? (Looks like that might require a minor code re-write...) And would we just leave out the original README, in favor of this one? I guess the other option is to keep everything in a subfolder of /thumbnailer-go/...


To quickly make sure the application is ready, execute the integrated tests
To make sure the application is ready, run the integrated tests:

```
go test ./...
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this fail if I don't have ffmpeg installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rewrote the "before you begin" section to include ffmpeg

> To make the JSON service responses more readable consider installing [jq](https://stedolan.github.io/jq/), makes JSON pretty
> To make the JSON service responses more readable, this guide uses
[jq](https://stedolan.github.io/jq/). If you don't want to install
it, remove `| jq '.'` from the following commands.

### Ping
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd cut this part.

@google-prow-robot google-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 23, 2018
Copy link
Contributor

@labadav labadav left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 25, 2018
@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: labadav, samodell

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

@google-prow-robot google-prow-robot merged commit 3d9cc5e into master Jul 25, 2018
@rgregg rgregg deleted the samodell-patch-1 branch July 27, 2018 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants