olttwa / dobby

dobby is free and will serve your orders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dobby

Dobby GIF

dobby is free and will serve your orders.

You can start dobby using:

dobby server

which will start dobby server in port 4444.

You can ask dobby's

  • health curl dobby:4444/health
  • readiness curl dobby:4444/readiness
  • version curl dobby:4444/version

You can order dobby to

  • be healthy

    PUT /control/health/perfect which will make /health to return 200

  • fall sick

    PUT /control/health/sick which will make /health to return 500

  • be ready

    PUT /control/ready/perfect which will make /readiness to return 200

  • not to be ready

    PUT /control/ready/sick which will make /readiness to return 500

  • kill itself

    PUT /state/crash which will crash the server

Run

Configurations

Available configurations:

Key Value Purpose Default
VERSION String To set the version of program Build Arg
INITIAL_HEALTH String Sets the initial health of the program TRUE
INITIAL_READINESS String Sets the initial readiness of the program TRUE
PORT Int Sets the port of the server 4444
BIND_ADDR String Listen address of the process 127.0.0.1

Docker

docker run thecasualcoder/dobby

Run in local

git clone https://github.com/thecasualcoder/dobby.git && cd dobby
make compile
./out/dobby server

Contributing

Fork the repo and start contributing

Guidelines

  • Make sure to run build before raising PR (make build)
  • Update README.md if necessary

About

dobby is free and will serve your orders


Languages

Language:Go 77.1%Language:Makefile 19.1%Language:Dockerfile 2.7%Language:Shell 1.1%