This is a very minimal shell-based HTTP server. It uses
netcat
to listen on a port and executes response.sh
for every
incoming HTTP-request.
With this repository I want to illustrate you can run anything with Cloud Run, as long as it speaks HTTP.
docker build . -t sh;
docker run -it -p 8080:8080 sh
gcloud builds submit
gcloud run deploy --image gcr.io/$(gcloud config get-value project)/sh
Shell-based HTTP servers are not novel. Here's a list of similar implementations you can learn from: