Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wietsevenema/sh-server
Minimal Shell Based HTTP Server
https://github.com/wietsevenema/sh-server
Last synced: 3 months ago
JSON representation
Minimal Shell Based HTTP Server
- Host: GitHub
- URL: https://github.com/wietsevenema/sh-server
- Owner: wietsevenema
- License: mit
- Created: 2020-03-24T10:28:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T10:36:18.000Z (almost 5 years ago)
- Last Synced: 2024-05-22T06:07:47.875Z (8 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloud-run - sh server
README
# Minimal Shell-Based HTTP server
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.## Why
With this repository I want to illustrate you can run anything
with Cloud Run, as long as it speaks HTTP.## Running on Your Local Machine
```
docker build . -t sh;
docker run -it -p 8080:8080 sh
```
## Deploy to Cloud Run
```
gcloud builds submit
gcloud run deploy --image gcr.io/$(gcloud config get-value project)/sh
```## Similar Work
Shell-based HTTP servers are not novel. Here's a list of similar
implementations you can learn from:+ [benrady/shinatra](https://github.com/benrady/shinatra)
+ [avleen/bashttpd](https://github.com/avleen/bashttpd)