From 04deecd7a00f45b501607154577c31facf52d678 Mon Sep 17 00:00:00 2001 From: averikitsch Date: Thu, 24 Jan 2019 10:16:28 -0800 Subject: [PATCH 1/3] Move extra helloworld samples --- community/samples/README.md | 0 .../samples/serving}/helloworld-clojure/.gitignore | 0 .../samples/serving}/helloworld-clojure/Dockerfile | 0 .../samples/serving}/helloworld-clojure/README.md | 0 .../samples/serving}/helloworld-clojure/project.clj | 0 .../serving}/helloworld-clojure/service.yaml | 0 .../helloworld-clojure/src/helloworld/core.clj | 0 .../samples/serving}/helloworld-dart/Dockerfile | 0 .../samples/serving}/helloworld-dart/README.md | 0 .../serving}/helloworld-dart/bin/server.dart | 0 .../samples/serving}/helloworld-dart/pubspec.lock | 0 .../samples/serving}/helloworld-dart/pubspec.yaml | 0 .../samples/serving}/helloworld-dart/service.yaml | 0 .../serving}/helloworld-elixir/.gcloudignore | 0 .../samples/serving}/helloworld-elixir/.gitignore | 0 .../samples/serving}/helloworld-elixir/Dockerfile | 0 .../samples/serving}/helloworld-elixir/README.md | 0 .../helloworld-elixir/assets/brunch-config.js | 0 .../serving}/helloworld-elixir/assets/css/app.css | 0 .../helloworld-elixir/assets/css/phoenix.css | 0 .../serving}/helloworld-elixir/assets/js/app.js | 0 .../serving}/helloworld-elixir/assets/js/socket.js | 0 .../serving}/helloworld-elixir/assets/package.json | 0 .../helloworld-elixir/assets/static/favicon.ico | Bin .../assets/static/images/phoenix.png | Bin .../helloworld-elixir/assets/static/robots.txt | 0 .../serving}/helloworld-elixir/config/config.exs | 0 .../serving}/helloworld-elixir/config/dev.exs | 0 .../serving}/helloworld-elixir/config/prod.exs | 0 .../helloworld-elixir/config/prod.secret.exs.sample | 0 .../serving}/helloworld-elixir/config/test.exs | 0 .../samples/serving}/helloworld-elixir/lib/hello.ex | 0 .../helloworld-elixir/lib/hello/application.ex | 0 .../serving}/helloworld-elixir/lib/hello_web.ex | 0 .../lib/hello_web/channels/user_socket.ex | 0 .../lib/hello_web/controllers/page_controller.ex | 0 .../helloworld-elixir/lib/hello_web/endpoint.ex | 0 .../helloworld-elixir/lib/hello_web/gettext.ex | 0 .../helloworld-elixir/lib/hello_web/router.ex | 0 .../lib/hello_web/templates/layout/app.html.eex | 0 .../lib/hello_web/templates/page/index.html.eex | 0 .../lib/hello_web/views/error_helpers.ex | 0 .../lib/hello_web/views/error_view.ex | 0 .../lib/hello_web/views/hello_view.ex | 0 .../lib/hello_web/views/layout_view.ex | 0 .../lib/hello_web/views/page_view.ex | 0 .../samples/serving}/helloworld-elixir/mix.exs | 0 .../samples/serving}/helloworld-elixir/mix.lock | 0 .../priv/gettext/en/LC_MESSAGES/errors.po | 0 .../helloworld-elixir/priv/gettext/errors.pot | 0 .../serving}/helloworld-elixir/rel/config.exs | 0 .../samples/serving}/helloworld-elixir/service.yaml | 0 .../hello_web/controllers/page_controller_test.exs | 0 .../test/hello_web/views/error_view_test.exs | 0 .../test/hello_web/views/layout_view_test.exs | 0 .../test/hello_web/views/page_view_test.exs | 0 .../helloworld-elixir/test/support/channel_case.ex | 0 .../helloworld-elixir/test/support/conn_case.ex | 0 .../serving}/helloworld-elixir/test/test_helper.exs | 0 .../samples/serving}/helloworld-haskell/.gitignore | 0 .../samples/serving}/helloworld-haskell/Dockerfile | 0 .../samples/serving}/helloworld-haskell/README.md | 0 .../samples/serving}/helloworld-haskell/app/Main.hs | 0 .../serving}/helloworld-haskell/package.yaml | 0 .../serving}/helloworld-haskell/service.yaml | 0 .../samples/serving}/helloworld-haskell/stack.yaml | 0 .../samples/serving}/helloworld-rust/Cargo.toml | 0 .../samples/serving}/helloworld-rust/Dockerfile | 0 .../samples/serving}/helloworld-rust/README.md | 0 .../samples/serving}/helloworld-rust/service.yaml | 0 .../samples/serving}/helloworld-rust/src/main.rs | 0 .../samples/serving}/helloworld-shell/Dockerfile | 0 .../samples/serving}/helloworld-shell/README.md | 0 .../samples/serving}/helloworld-shell/invoke.go | 0 .../samples/serving}/helloworld-shell/script.sh | 0 .../samples/serving}/helloworld-shell/service.yaml | 0 .../serving}/helloworld-swift/.swift-version | 0 .../samples/serving}/helloworld-swift/Dockerfile | 0 .../samples/serving}/helloworld-swift/Package.swift | 0 .../samples/serving}/helloworld-swift/README.md | 0 .../helloworld-swift/Sources/HelloSwift/main.swift | 0 .../samples/serving}/helloworld-swift/service.yaml | 0 .../samples/serving}/helloworld-vertx/Dockerfile | 0 .../samples/serving}/helloworld-vertx/README.md | 0 .../samples/serving}/helloworld-vertx/pom.xml | 0 .../samples/serving}/helloworld-vertx/service.yaml | 0 .../java/com/example/helloworld/HelloWorld.java | 0 87 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 community/samples/README.md rename {serving/samples => community/samples/serving}/helloworld-clojure/.gitignore (100%) rename {serving/samples => community/samples/serving}/helloworld-clojure/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-clojure/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-clojure/project.clj (100%) rename {serving/samples => community/samples/serving}/helloworld-clojure/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-clojure/src/helloworld/core.clj (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/bin/server.dart (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/pubspec.lock (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/pubspec.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-dart/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/.gcloudignore (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/.gitignore (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/brunch-config.js (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/css/app.css (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/css/phoenix.css (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/js/app.js (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/js/socket.js (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/package.json (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/static/favicon.ico (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/static/images/phoenix.png (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/assets/static/robots.txt (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/config/config.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/config/dev.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/config/prod.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/config/prod.secret.exs.sample (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/config/test.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello/application.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/channels/user_socket.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/controllers/page_controller.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/endpoint.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/gettext.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/router.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/templates/layout/app.html.eex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/templates/page/index.html.eex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/views/error_helpers.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/views/error_view.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/views/hello_view.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/views/layout_view.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/lib/hello_web/views/page_view.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/mix.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/mix.lock (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/priv/gettext/en/LC_MESSAGES/errors.po (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/priv/gettext/errors.pot (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/rel/config.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/hello_web/controllers/page_controller_test.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/hello_web/views/error_view_test.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/hello_web/views/layout_view_test.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/hello_web/views/page_view_test.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/support/channel_case.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/support/conn_case.ex (100%) rename {serving/samples => community/samples/serving}/helloworld-elixir/test/test_helper.exs (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/.gitignore (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/app/Main.hs (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/package.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-haskell/stack.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-rust/Cargo.toml (100%) rename {serving/samples => community/samples/serving}/helloworld-rust/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-rust/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-rust/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-rust/src/main.rs (100%) rename {serving/samples => community/samples/serving}/helloworld-shell/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-shell/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-shell/invoke.go (100%) rename {serving/samples => community/samples/serving}/helloworld-shell/script.sh (100%) rename {serving/samples => community/samples/serving}/helloworld-shell/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/.swift-version (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/Package.swift (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/Sources/HelloSwift/main.swift (100%) rename {serving/samples => community/samples/serving}/helloworld-swift/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-vertx/Dockerfile (100%) rename {serving/samples => community/samples/serving}/helloworld-vertx/README.md (100%) rename {serving/samples => community/samples/serving}/helloworld-vertx/pom.xml (100%) rename {serving/samples => community/samples/serving}/helloworld-vertx/service.yaml (100%) rename {serving/samples => community/samples/serving}/helloworld-vertx/src/main/java/com/example/helloworld/HelloWorld.java (100%) diff --git a/community/samples/README.md b/community/samples/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/serving/samples/helloworld-clojure/.gitignore b/community/samples/serving/helloworld-clojure/.gitignore similarity index 100% rename from serving/samples/helloworld-clojure/.gitignore rename to community/samples/serving/helloworld-clojure/.gitignore diff --git a/serving/samples/helloworld-clojure/Dockerfile b/community/samples/serving/helloworld-clojure/Dockerfile similarity index 100% rename from serving/samples/helloworld-clojure/Dockerfile rename to community/samples/serving/helloworld-clojure/Dockerfile diff --git a/serving/samples/helloworld-clojure/README.md b/community/samples/serving/helloworld-clojure/README.md similarity index 100% rename from serving/samples/helloworld-clojure/README.md rename to community/samples/serving/helloworld-clojure/README.md diff --git a/serving/samples/helloworld-clojure/project.clj b/community/samples/serving/helloworld-clojure/project.clj similarity index 100% rename from serving/samples/helloworld-clojure/project.clj rename to community/samples/serving/helloworld-clojure/project.clj diff --git a/serving/samples/helloworld-clojure/service.yaml b/community/samples/serving/helloworld-clojure/service.yaml similarity index 100% rename from serving/samples/helloworld-clojure/service.yaml rename to community/samples/serving/helloworld-clojure/service.yaml diff --git a/serving/samples/helloworld-clojure/src/helloworld/core.clj b/community/samples/serving/helloworld-clojure/src/helloworld/core.clj similarity index 100% rename from serving/samples/helloworld-clojure/src/helloworld/core.clj rename to community/samples/serving/helloworld-clojure/src/helloworld/core.clj diff --git a/serving/samples/helloworld-dart/Dockerfile b/community/samples/serving/helloworld-dart/Dockerfile similarity index 100% rename from serving/samples/helloworld-dart/Dockerfile rename to community/samples/serving/helloworld-dart/Dockerfile diff --git a/serving/samples/helloworld-dart/README.md b/community/samples/serving/helloworld-dart/README.md similarity index 100% rename from serving/samples/helloworld-dart/README.md rename to community/samples/serving/helloworld-dart/README.md diff --git a/serving/samples/helloworld-dart/bin/server.dart b/community/samples/serving/helloworld-dart/bin/server.dart similarity index 100% rename from serving/samples/helloworld-dart/bin/server.dart rename to community/samples/serving/helloworld-dart/bin/server.dart diff --git a/serving/samples/helloworld-dart/pubspec.lock b/community/samples/serving/helloworld-dart/pubspec.lock similarity index 100% rename from serving/samples/helloworld-dart/pubspec.lock rename to community/samples/serving/helloworld-dart/pubspec.lock diff --git a/serving/samples/helloworld-dart/pubspec.yaml b/community/samples/serving/helloworld-dart/pubspec.yaml similarity index 100% rename from serving/samples/helloworld-dart/pubspec.yaml rename to community/samples/serving/helloworld-dart/pubspec.yaml diff --git a/serving/samples/helloworld-dart/service.yaml b/community/samples/serving/helloworld-dart/service.yaml similarity index 100% rename from serving/samples/helloworld-dart/service.yaml rename to community/samples/serving/helloworld-dart/service.yaml diff --git a/serving/samples/helloworld-elixir/.gcloudignore b/community/samples/serving/helloworld-elixir/.gcloudignore similarity index 100% rename from serving/samples/helloworld-elixir/.gcloudignore rename to community/samples/serving/helloworld-elixir/.gcloudignore diff --git a/serving/samples/helloworld-elixir/.gitignore b/community/samples/serving/helloworld-elixir/.gitignore similarity index 100% rename from serving/samples/helloworld-elixir/.gitignore rename to community/samples/serving/helloworld-elixir/.gitignore diff --git a/serving/samples/helloworld-elixir/Dockerfile b/community/samples/serving/helloworld-elixir/Dockerfile similarity index 100% rename from serving/samples/helloworld-elixir/Dockerfile rename to community/samples/serving/helloworld-elixir/Dockerfile diff --git a/serving/samples/helloworld-elixir/README.md b/community/samples/serving/helloworld-elixir/README.md similarity index 100% rename from serving/samples/helloworld-elixir/README.md rename to community/samples/serving/helloworld-elixir/README.md diff --git a/serving/samples/helloworld-elixir/assets/brunch-config.js b/community/samples/serving/helloworld-elixir/assets/brunch-config.js similarity index 100% rename from serving/samples/helloworld-elixir/assets/brunch-config.js rename to community/samples/serving/helloworld-elixir/assets/brunch-config.js diff --git a/serving/samples/helloworld-elixir/assets/css/app.css b/community/samples/serving/helloworld-elixir/assets/css/app.css similarity index 100% rename from serving/samples/helloworld-elixir/assets/css/app.css rename to community/samples/serving/helloworld-elixir/assets/css/app.css diff --git a/serving/samples/helloworld-elixir/assets/css/phoenix.css b/community/samples/serving/helloworld-elixir/assets/css/phoenix.css similarity index 100% rename from serving/samples/helloworld-elixir/assets/css/phoenix.css rename to community/samples/serving/helloworld-elixir/assets/css/phoenix.css diff --git a/serving/samples/helloworld-elixir/assets/js/app.js b/community/samples/serving/helloworld-elixir/assets/js/app.js similarity index 100% rename from serving/samples/helloworld-elixir/assets/js/app.js rename to community/samples/serving/helloworld-elixir/assets/js/app.js diff --git a/serving/samples/helloworld-elixir/assets/js/socket.js b/community/samples/serving/helloworld-elixir/assets/js/socket.js similarity index 100% rename from serving/samples/helloworld-elixir/assets/js/socket.js rename to community/samples/serving/helloworld-elixir/assets/js/socket.js diff --git a/serving/samples/helloworld-elixir/assets/package.json b/community/samples/serving/helloworld-elixir/assets/package.json similarity index 100% rename from serving/samples/helloworld-elixir/assets/package.json rename to community/samples/serving/helloworld-elixir/assets/package.json diff --git a/serving/samples/helloworld-elixir/assets/static/favicon.ico b/community/samples/serving/helloworld-elixir/assets/static/favicon.ico similarity index 100% rename from serving/samples/helloworld-elixir/assets/static/favicon.ico rename to community/samples/serving/helloworld-elixir/assets/static/favicon.ico diff --git a/serving/samples/helloworld-elixir/assets/static/images/phoenix.png b/community/samples/serving/helloworld-elixir/assets/static/images/phoenix.png similarity index 100% rename from serving/samples/helloworld-elixir/assets/static/images/phoenix.png rename to community/samples/serving/helloworld-elixir/assets/static/images/phoenix.png diff --git a/serving/samples/helloworld-elixir/assets/static/robots.txt b/community/samples/serving/helloworld-elixir/assets/static/robots.txt similarity index 100% rename from serving/samples/helloworld-elixir/assets/static/robots.txt rename to community/samples/serving/helloworld-elixir/assets/static/robots.txt diff --git a/serving/samples/helloworld-elixir/config/config.exs b/community/samples/serving/helloworld-elixir/config/config.exs similarity index 100% rename from serving/samples/helloworld-elixir/config/config.exs rename to community/samples/serving/helloworld-elixir/config/config.exs diff --git a/serving/samples/helloworld-elixir/config/dev.exs b/community/samples/serving/helloworld-elixir/config/dev.exs similarity index 100% rename from serving/samples/helloworld-elixir/config/dev.exs rename to community/samples/serving/helloworld-elixir/config/dev.exs diff --git a/serving/samples/helloworld-elixir/config/prod.exs b/community/samples/serving/helloworld-elixir/config/prod.exs similarity index 100% rename from serving/samples/helloworld-elixir/config/prod.exs rename to community/samples/serving/helloworld-elixir/config/prod.exs diff --git a/serving/samples/helloworld-elixir/config/prod.secret.exs.sample b/community/samples/serving/helloworld-elixir/config/prod.secret.exs.sample similarity index 100% rename from serving/samples/helloworld-elixir/config/prod.secret.exs.sample rename to community/samples/serving/helloworld-elixir/config/prod.secret.exs.sample diff --git a/serving/samples/helloworld-elixir/config/test.exs b/community/samples/serving/helloworld-elixir/config/test.exs similarity index 100% rename from serving/samples/helloworld-elixir/config/test.exs rename to community/samples/serving/helloworld-elixir/config/test.exs diff --git a/serving/samples/helloworld-elixir/lib/hello.ex b/community/samples/serving/helloworld-elixir/lib/hello.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello.ex rename to community/samples/serving/helloworld-elixir/lib/hello.ex diff --git a/serving/samples/helloworld-elixir/lib/hello/application.ex b/community/samples/serving/helloworld-elixir/lib/hello/application.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello/application.ex rename to community/samples/serving/helloworld-elixir/lib/hello/application.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web.ex b/community/samples/serving/helloworld-elixir/lib/hello_web.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/channels/user_socket.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/channels/user_socket.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/channels/user_socket.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/channels/user_socket.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/controllers/page_controller.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/controllers/page_controller.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/controllers/page_controller.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/controllers/page_controller.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/endpoint.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/endpoint.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/endpoint.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/endpoint.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/gettext.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/gettext.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/gettext.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/gettext.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/router.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/router.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/router.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/router.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/templates/layout/app.html.eex b/community/samples/serving/helloworld-elixir/lib/hello_web/templates/layout/app.html.eex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/templates/layout/app.html.eex rename to community/samples/serving/helloworld-elixir/lib/hello_web/templates/layout/app.html.eex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/templates/page/index.html.eex b/community/samples/serving/helloworld-elixir/lib/hello_web/templates/page/index.html.eex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/templates/page/index.html.eex rename to community/samples/serving/helloworld-elixir/lib/hello_web/templates/page/index.html.eex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/views/error_helpers.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/views/error_helpers.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/views/error_helpers.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/views/error_helpers.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/views/error_view.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/views/error_view.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/views/error_view.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/views/error_view.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/views/hello_view.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/views/hello_view.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/views/hello_view.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/views/hello_view.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/views/layout_view.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/views/layout_view.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/views/layout_view.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/views/layout_view.ex diff --git a/serving/samples/helloworld-elixir/lib/hello_web/views/page_view.ex b/community/samples/serving/helloworld-elixir/lib/hello_web/views/page_view.ex similarity index 100% rename from serving/samples/helloworld-elixir/lib/hello_web/views/page_view.ex rename to community/samples/serving/helloworld-elixir/lib/hello_web/views/page_view.ex diff --git a/serving/samples/helloworld-elixir/mix.exs b/community/samples/serving/helloworld-elixir/mix.exs similarity index 100% rename from serving/samples/helloworld-elixir/mix.exs rename to community/samples/serving/helloworld-elixir/mix.exs diff --git a/serving/samples/helloworld-elixir/mix.lock b/community/samples/serving/helloworld-elixir/mix.lock similarity index 100% rename from serving/samples/helloworld-elixir/mix.lock rename to community/samples/serving/helloworld-elixir/mix.lock diff --git a/serving/samples/helloworld-elixir/priv/gettext/en/LC_MESSAGES/errors.po b/community/samples/serving/helloworld-elixir/priv/gettext/en/LC_MESSAGES/errors.po similarity index 100% rename from serving/samples/helloworld-elixir/priv/gettext/en/LC_MESSAGES/errors.po rename to community/samples/serving/helloworld-elixir/priv/gettext/en/LC_MESSAGES/errors.po diff --git a/serving/samples/helloworld-elixir/priv/gettext/errors.pot b/community/samples/serving/helloworld-elixir/priv/gettext/errors.pot similarity index 100% rename from serving/samples/helloworld-elixir/priv/gettext/errors.pot rename to community/samples/serving/helloworld-elixir/priv/gettext/errors.pot diff --git a/serving/samples/helloworld-elixir/rel/config.exs b/community/samples/serving/helloworld-elixir/rel/config.exs similarity index 100% rename from serving/samples/helloworld-elixir/rel/config.exs rename to community/samples/serving/helloworld-elixir/rel/config.exs diff --git a/serving/samples/helloworld-elixir/service.yaml b/community/samples/serving/helloworld-elixir/service.yaml similarity index 100% rename from serving/samples/helloworld-elixir/service.yaml rename to community/samples/serving/helloworld-elixir/service.yaml diff --git a/serving/samples/helloworld-elixir/test/hello_web/controllers/page_controller_test.exs b/community/samples/serving/helloworld-elixir/test/hello_web/controllers/page_controller_test.exs similarity index 100% rename from serving/samples/helloworld-elixir/test/hello_web/controllers/page_controller_test.exs rename to community/samples/serving/helloworld-elixir/test/hello_web/controllers/page_controller_test.exs diff --git a/serving/samples/helloworld-elixir/test/hello_web/views/error_view_test.exs b/community/samples/serving/helloworld-elixir/test/hello_web/views/error_view_test.exs similarity index 100% rename from serving/samples/helloworld-elixir/test/hello_web/views/error_view_test.exs rename to community/samples/serving/helloworld-elixir/test/hello_web/views/error_view_test.exs diff --git a/serving/samples/helloworld-elixir/test/hello_web/views/layout_view_test.exs b/community/samples/serving/helloworld-elixir/test/hello_web/views/layout_view_test.exs similarity index 100% rename from serving/samples/helloworld-elixir/test/hello_web/views/layout_view_test.exs rename to community/samples/serving/helloworld-elixir/test/hello_web/views/layout_view_test.exs diff --git a/serving/samples/helloworld-elixir/test/hello_web/views/page_view_test.exs b/community/samples/serving/helloworld-elixir/test/hello_web/views/page_view_test.exs similarity index 100% rename from serving/samples/helloworld-elixir/test/hello_web/views/page_view_test.exs rename to community/samples/serving/helloworld-elixir/test/hello_web/views/page_view_test.exs diff --git a/serving/samples/helloworld-elixir/test/support/channel_case.ex b/community/samples/serving/helloworld-elixir/test/support/channel_case.ex similarity index 100% rename from serving/samples/helloworld-elixir/test/support/channel_case.ex rename to community/samples/serving/helloworld-elixir/test/support/channel_case.ex diff --git a/serving/samples/helloworld-elixir/test/support/conn_case.ex b/community/samples/serving/helloworld-elixir/test/support/conn_case.ex similarity index 100% rename from serving/samples/helloworld-elixir/test/support/conn_case.ex rename to community/samples/serving/helloworld-elixir/test/support/conn_case.ex diff --git a/serving/samples/helloworld-elixir/test/test_helper.exs b/community/samples/serving/helloworld-elixir/test/test_helper.exs similarity index 100% rename from serving/samples/helloworld-elixir/test/test_helper.exs rename to community/samples/serving/helloworld-elixir/test/test_helper.exs diff --git a/serving/samples/helloworld-haskell/.gitignore b/community/samples/serving/helloworld-haskell/.gitignore similarity index 100% rename from serving/samples/helloworld-haskell/.gitignore rename to community/samples/serving/helloworld-haskell/.gitignore diff --git a/serving/samples/helloworld-haskell/Dockerfile b/community/samples/serving/helloworld-haskell/Dockerfile similarity index 100% rename from serving/samples/helloworld-haskell/Dockerfile rename to community/samples/serving/helloworld-haskell/Dockerfile diff --git a/serving/samples/helloworld-haskell/README.md b/community/samples/serving/helloworld-haskell/README.md similarity index 100% rename from serving/samples/helloworld-haskell/README.md rename to community/samples/serving/helloworld-haskell/README.md diff --git a/serving/samples/helloworld-haskell/app/Main.hs b/community/samples/serving/helloworld-haskell/app/Main.hs similarity index 100% rename from serving/samples/helloworld-haskell/app/Main.hs rename to community/samples/serving/helloworld-haskell/app/Main.hs diff --git a/serving/samples/helloworld-haskell/package.yaml b/community/samples/serving/helloworld-haskell/package.yaml similarity index 100% rename from serving/samples/helloworld-haskell/package.yaml rename to community/samples/serving/helloworld-haskell/package.yaml diff --git a/serving/samples/helloworld-haskell/service.yaml b/community/samples/serving/helloworld-haskell/service.yaml similarity index 100% rename from serving/samples/helloworld-haskell/service.yaml rename to community/samples/serving/helloworld-haskell/service.yaml diff --git a/serving/samples/helloworld-haskell/stack.yaml b/community/samples/serving/helloworld-haskell/stack.yaml similarity index 100% rename from serving/samples/helloworld-haskell/stack.yaml rename to community/samples/serving/helloworld-haskell/stack.yaml diff --git a/serving/samples/helloworld-rust/Cargo.toml b/community/samples/serving/helloworld-rust/Cargo.toml similarity index 100% rename from serving/samples/helloworld-rust/Cargo.toml rename to community/samples/serving/helloworld-rust/Cargo.toml diff --git a/serving/samples/helloworld-rust/Dockerfile b/community/samples/serving/helloworld-rust/Dockerfile similarity index 100% rename from serving/samples/helloworld-rust/Dockerfile rename to community/samples/serving/helloworld-rust/Dockerfile diff --git a/serving/samples/helloworld-rust/README.md b/community/samples/serving/helloworld-rust/README.md similarity index 100% rename from serving/samples/helloworld-rust/README.md rename to community/samples/serving/helloworld-rust/README.md diff --git a/serving/samples/helloworld-rust/service.yaml b/community/samples/serving/helloworld-rust/service.yaml similarity index 100% rename from serving/samples/helloworld-rust/service.yaml rename to community/samples/serving/helloworld-rust/service.yaml diff --git a/serving/samples/helloworld-rust/src/main.rs b/community/samples/serving/helloworld-rust/src/main.rs similarity index 100% rename from serving/samples/helloworld-rust/src/main.rs rename to community/samples/serving/helloworld-rust/src/main.rs diff --git a/serving/samples/helloworld-shell/Dockerfile b/community/samples/serving/helloworld-shell/Dockerfile similarity index 100% rename from serving/samples/helloworld-shell/Dockerfile rename to community/samples/serving/helloworld-shell/Dockerfile diff --git a/serving/samples/helloworld-shell/README.md b/community/samples/serving/helloworld-shell/README.md similarity index 100% rename from serving/samples/helloworld-shell/README.md rename to community/samples/serving/helloworld-shell/README.md diff --git a/serving/samples/helloworld-shell/invoke.go b/community/samples/serving/helloworld-shell/invoke.go similarity index 100% rename from serving/samples/helloworld-shell/invoke.go rename to community/samples/serving/helloworld-shell/invoke.go diff --git a/serving/samples/helloworld-shell/script.sh b/community/samples/serving/helloworld-shell/script.sh similarity index 100% rename from serving/samples/helloworld-shell/script.sh rename to community/samples/serving/helloworld-shell/script.sh diff --git a/serving/samples/helloworld-shell/service.yaml b/community/samples/serving/helloworld-shell/service.yaml similarity index 100% rename from serving/samples/helloworld-shell/service.yaml rename to community/samples/serving/helloworld-shell/service.yaml diff --git a/serving/samples/helloworld-swift/.swift-version b/community/samples/serving/helloworld-swift/.swift-version similarity index 100% rename from serving/samples/helloworld-swift/.swift-version rename to community/samples/serving/helloworld-swift/.swift-version diff --git a/serving/samples/helloworld-swift/Dockerfile b/community/samples/serving/helloworld-swift/Dockerfile similarity index 100% rename from serving/samples/helloworld-swift/Dockerfile rename to community/samples/serving/helloworld-swift/Dockerfile diff --git a/serving/samples/helloworld-swift/Package.swift b/community/samples/serving/helloworld-swift/Package.swift similarity index 100% rename from serving/samples/helloworld-swift/Package.swift rename to community/samples/serving/helloworld-swift/Package.swift diff --git a/serving/samples/helloworld-swift/README.md b/community/samples/serving/helloworld-swift/README.md similarity index 100% rename from serving/samples/helloworld-swift/README.md rename to community/samples/serving/helloworld-swift/README.md diff --git a/serving/samples/helloworld-swift/Sources/HelloSwift/main.swift b/community/samples/serving/helloworld-swift/Sources/HelloSwift/main.swift similarity index 100% rename from serving/samples/helloworld-swift/Sources/HelloSwift/main.swift rename to community/samples/serving/helloworld-swift/Sources/HelloSwift/main.swift diff --git a/serving/samples/helloworld-swift/service.yaml b/community/samples/serving/helloworld-swift/service.yaml similarity index 100% rename from serving/samples/helloworld-swift/service.yaml rename to community/samples/serving/helloworld-swift/service.yaml diff --git a/serving/samples/helloworld-vertx/Dockerfile b/community/samples/serving/helloworld-vertx/Dockerfile similarity index 100% rename from serving/samples/helloworld-vertx/Dockerfile rename to community/samples/serving/helloworld-vertx/Dockerfile diff --git a/serving/samples/helloworld-vertx/README.md b/community/samples/serving/helloworld-vertx/README.md similarity index 100% rename from serving/samples/helloworld-vertx/README.md rename to community/samples/serving/helloworld-vertx/README.md diff --git a/serving/samples/helloworld-vertx/pom.xml b/community/samples/serving/helloworld-vertx/pom.xml similarity index 100% rename from serving/samples/helloworld-vertx/pom.xml rename to community/samples/serving/helloworld-vertx/pom.xml diff --git a/serving/samples/helloworld-vertx/service.yaml b/community/samples/serving/helloworld-vertx/service.yaml similarity index 100% rename from serving/samples/helloworld-vertx/service.yaml rename to community/samples/serving/helloworld-vertx/service.yaml diff --git a/serving/samples/helloworld-vertx/src/main/java/com/example/helloworld/HelloWorld.java b/community/samples/serving/helloworld-vertx/src/main/java/com/example/helloworld/HelloWorld.java similarity index 100% rename from serving/samples/helloworld-vertx/src/main/java/com/example/helloworld/HelloWorld.java rename to community/samples/serving/helloworld-vertx/src/main/java/com/example/helloworld/HelloWorld.java From 3a9871482626878ee23658f00f63f928858cf2e1 Mon Sep 17 00:00:00 2001 From: averikitsch Date: Thu, 24 Jan 2019 10:57:02 -0800 Subject: [PATCH 2/3] Add documentation for community samples --- community/README.md | 19 +++++++++++++++++++ community/samples/README.md | 3 +++ serving/samples/README.md | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/community/README.md b/community/README.md index 5d7b5ce6fb7..a97ca34fd08 100644 --- a/community/README.md +++ b/community/README.md @@ -15,6 +15,7 @@ improving docs, giving talks, etc. - [Introduction](#introduction) - [Knative authors](#knative-authors) + - [Authoring samples](#authoring-samples) - [Meetings and work groups](#meetings-and-work-groups) - [How can I help?](#how-can-i-help) - [Questions and issues](#questions-and-issues) @@ -49,6 +50,24 @@ project was started by Google but has contributions from a growing number of industry-leading companies. For a current list of the authors, see [Authors](https://github.com/knative/serving/blob/master/AUTHORS). +### Authoring samples + +Beyond the official documentation there are endless possibilities for combining +tools, platforms, languages and products. By submitting a tutorial you can +share your experience and help others who are solving similar problems. + +Community tutorials are stored in Markdown files on +[GitHub](./samples/README.md) where they can be reviewed and edited by the +community. + +Please submit a Pull Request to the community sample directory under the +Knative component that your tutorial highlights - +[Serving](./samples/serving/), [Eventing](./samples/eventing/), +or [Build](./samples/build/). A reviewer will be assigned to review your +submission. They'll work with you to ensure your submission meets the +[style guide](DOCS-CONTRIBUTING.md), but it helps if you follow it as you +write your tutorial. + ## Meetings and work groups Knative has public and recorded bi-weekly community meetings. diff --git a/community/samples/README.md b/community/samples/README.md index e69de29bb2d..061dc2dc1a3 100644 --- a/community/samples/README.md +++ b/community/samples/README.md @@ -0,0 +1,3 @@ +# Knative Community Samples + +This directory contains Knative sample applications submitted from the community. diff --git a/serving/samples/README.md b/serving/samples/README.md index aa352d51019..8c62112405f 100644 --- a/serving/samples/README.md +++ b/serving/samples/README.md @@ -7,7 +7,7 @@ more about Knative Serving resources. | Name | Description | Languages | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | -| Hello World | A quick introduction that highlights how to deploy an app using Knative Serving. | [C#](helloworld-csharp/README.md), [Clojure](helloworld-clojure/README.md), [Eclipse Vert.x](helloworld-vertx/README.md), [Haskell](helloworld-haskell/README.md), [Go](helloworld-go/README.md), [Java](helloworld-java/README.md), [Kotlin](helloworld-kotlin/README.md), [Node.js](helloworld-nodejs/README.md), [PHP](helloworld-php/README.md), [Python](helloworld-python/README.md), [Ruby](helloworld-ruby/README.md), [Rust](helloworld-rust/README.md) | +| Hello World | A quick introduction that highlights how to deploy an app using Knative Serving. | [C#](helloworld-csharp/README.md), [Go](helloworld-go/README.md), [Java](helloworld-java/README.md), [Kotlin](helloworld-kotlin/README.md), [Node.js](helloworld-nodejs/README.md), [PHP](helloworld-php/README.md), [Python](helloworld-python/README.md), [Ruby](helloworld-ruby/README.md) | | Advanced Deployment | Simple blue/green-like application deployment pattern illustrating the process of updating a live application without dropping any traffic. | [YAML](blue-green-deployment.md) | | Autoscale | A demonstration of the autoscaling capabilities of Knative. | [Go](autoscale-go/README.md) | | Private Repo Build | An example of deploying a Knative Serving Service using a Github deploy-key and a DockerHub image pull secret. | [Go](build-private-repo-go/README.md) | From b3442df70756eb011f12e71aac8dced43d3da462 Mon Sep 17 00:00:00 2001 From: averikitsch Date: Mon, 28 Jan 2019 10:02:54 -0800 Subject: [PATCH 3/3] Update readmes --- community/README.md | 2 +- community/samples/README.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/community/README.md b/community/README.md index a97ca34fd08..7743fbcd7cd 100644 --- a/community/README.md +++ b/community/README.md @@ -53,7 +53,7 @@ industry-leading companies. For a current list of the authors, see ### Authoring samples Beyond the official documentation there are endless possibilities for combining -tools, platforms, languages and products. By submitting a tutorial you can +tools, platforms, languages, and products. By submitting a tutorial you can share your experience and help others who are solving similar problems. Community tutorials are stored in Markdown files on diff --git a/community/samples/README.md b/community/samples/README.md index 061dc2dc1a3..0d9959b6c74 100644 --- a/community/samples/README.md +++ b/community/samples/README.md @@ -1,3 +1,7 @@ # Knative Community Samples -This directory contains Knative sample applications submitted from the community. +This directory contains Knative sample applications submitted from the community. + +| Sample Name | Description | Language(s) | +| -------------------------- | -------------------------- | -------------------------- | +| Hello World | A quick introduction that highlights how to deploy an app using Knative Serving. | [Clojure](./serving/helloworld-clojure/README.md), [Dart](./serving/helloworld-dart/README.md), [Elixir](./serving/helloworld-elixir/README.md), [Haskell](./serving/helloworld-haskell/README.md), [Rust](./serving/helloworld-rust/README.md), [Shell](./serving/helloworld-shell/README.md), [Swift](./serving/helloworld-swift/README.md), [Vertx](./serving/helloworld-vertx/README.md) |