ultra light abstract base microservice for running cgi scripts
1.2K
Intended as an abstract base for creating quick and dirty microservices, written in bash or anything else
A request to / is rewritten to hit /cgi-bin/service.sh
Overwrite the service.sh script by replacing this file /usr/lib/cgi-bin/service.sh
This image features a poor mans init system with the following purposes:
For each process you wish to have running, add an executable to /poorman-init.d/
Override with mount for docker-run
docker run --rm -p 8080:80 -ti -v $PWD/service.sh: /usr/lib/cgi-bin/service.sh svinther/docker-cgi-microservice
Test with curl
curl -v localhost:8080
Steffen Vinther Sørensen [email protected]
Content type
Image
Digest
Size
40.1 MB
Last updated
over 6 years ago
docker pull svinther/docker-cgi-microservice