Skip to content

Repository files navigation

TestApp

A tiny Node.js application to test container environments and such stuff.

http://localhost:8080/ returns a greeting message with hostname and port.

curl -f http://localhost:8080/

Message can be customized via $APP_MESSAGE.

The Container uses this URL also as healthcheck.

put http://localhost:8080/mute toggles a flag so the server responses to the greeting-URL succuessfully or with http-500, so you can simulate a non working server.

curl -X POST http://localhost:8080/mute

Small and fast to build with

npm install
npm start
# or within a container
docker run --rm --name tinytestapp -p 8080:8080 -e APP_MESSAGE="yet another greeting from inside a container" tinytestapp

To build it as docker image

docker build -t tinytestapp .
docker tag tinytestapp:latest thomdo/tinytestapp:latest
docker login
docker push thomdo/tinytestapp:latest

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages