This template repo provides a simple Hello World web app using Ruby and Sinatra.
It can be deployed as a standalone web app, as a Kubernetes Deployment and Service, or as a Knative Service.
NOTE: This sample is based on the Knative Hello World - Ruby sample.
To build the container image for this app run:
Docker build -t hello-ruby .
To run the app image with the embedded server you can run this command:
docker run -it --rm -p 8080:8080 hello-ruby
To invoke the app run:
curl localhost:8080/
You can containerize this template app and deploy it as a Knative Service. See the Hello World - Ruby sample for details.