Skip to content

Commit

Permalink
Move samples to the doc repo (#1360)
Browse files Browse the repository at this point in the history
* Hide finder indexes

* Remove samples from serving

* Add back the helloworld sample

* Link to docs repo

* Move build-pack samples

* Clean up merge

* Remove helloworld again
  • Loading branch information
rgregg authored and google-prow-robot committed Jul 9, 2018
1 parent 3a6a17b commit d43bc6c
Show file tree
Hide file tree
Showing 59 changed files with 4 additions and 3,883 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
bazel-*
.idea
.vscode/
.DS_Store
30 changes: 0 additions & 30 deletions sample/Dockerfile.golang

This file was deleted.

32 changes: 3 additions & 29 deletions sample/README.md
@@ -1,30 +1,4 @@
# Samples
# Serving Samples

This directory contains sample services which demonstrate `Knative Serving`
functionality.

## Prerequisites

[Install Knative Serving](https://github.com/knative/install/blob/master/README.md)

## Samples

* [helloworld](./helloworld) - A simple webserver written in Go
* [pythonsimple](./pythonsimple) - A simple webserver written in Python
* [service](./service) - A simple Go example using the Service resource
* [stock restful app](./stock-rest-app) - Simple Restful service
* [thumbnailer](./thumbnailer) - A 'dockerized' web application creating thumbnails from videos
* [steren's sample-app](./steren-app) - A simple Node.js web application
* [buildpack sample app](./buildpack-app) - A sample buildpack app
* [buildpack sample function](./buildpack-function) - A sample buildpack function
* [steren's sample-function](./steren-function) - A simple Node.js function
* [private repos](./private-repos/) - A sample illustrating private GitHub / DockerHub
* [telemetrysample](./telemetrysample) - A simple webserver emitting logs and metrics
* [gitwebhook](./gitwebhook) - A function that listens for git PR changes and updates the title of them
* [autoscaler](./autoscale) - A demonstration of revision autoscaling
* [knative routing](./knative-routing) - A demonstration of mapping multiple Knative services
under a single domain.

## Best Practices for Contributing to Samples
* Minimize dependencies on third party libraries and prefer using standard libraries. Examples:
* Use "log" for logging.
Samples for Knative Serving are available in the
[Knative Docs repo](https://github.com/knative/docs/tree/master/serving/samples).
4 changes: 0 additions & 4 deletions sample/autoscale/OWNERS

This file was deleted.

80 changes: 0 additions & 80 deletions sample/autoscale/README.md

This file was deleted.

92 changes: 0 additions & 92 deletions sample/autoscale/autoscale.go

This file was deleted.

5 changes: 0 additions & 5 deletions sample/autoscale/hey/Dockerfile

This file was deleted.

46 changes: 0 additions & 46 deletions sample/autoscale/sample.yaml

This file was deleted.

83 changes: 0 additions & 83 deletions sample/buildpack-app/README.md

This file was deleted.

0 comments on commit d43bc6c

Please sign in to comment.