Sign inSign up

cateringssoft/always-ok-web-server

By cateringssoft

•Updated about 1 year ago

Web server that always returns a configurable HTTP status code on a specified port for every path.

Image
Integration & delivery
Developer tools
Web servers
0

10K+

cateringssoft/always-ok-web-server repository overview

⁠Always OK Web Server

A simple web server that always returns a configurable HTTP status code on a specified port for every path.

⁠Configuration

The server is configured using environment variables:

  • PORT: The port on which the server will listen (default: 8080)
  • HTTP_RESPONSE_STATUS_CODE: The HTTP status code to return for all requests (default: 200)

⁠Build

 docker build -t cateringssoft/always-ok-web-server:local .

⁠Usage

# Run with default settings (port 8080, status code 200)
docker run --rm -it -p 80:8080 cateringssoft/always-ok-web-server:local

# Run with custom port and status code
docker run --rm -it -p 80:8888 -e PORT=8888 -e HTTP_RESPONSE_STATUS_CODE=201 cateringssoft/always-ok-web-server:local

Tag summary

Content type

Image

Digest

sha256:f432aaf2f…

Size

5.4 MB

Last updated

about 1 year ago

docker pull cateringssoft/always-ok-web-server