webdebugger
Описание
Языки
- Makefile34,5%
- HTML27,4%
- Python21,9%
- Dockerfile10,6%
- Shell5,6%
webdebugger
This webb app show HTTP headers and other useful information
How to run
Docker
Just run docker container from Docker Hub
And now open webdebugger at http://localhost:8080/
Configuration
Environment variables
App behavior variables:
reply delay, secondsAPP_DELAYset web-page background color. DefaultAPP_BGCOLORwhitedisable loading external CSS or JS resources (usebla inside of isolated environments). Available values: one ofAPP_NO_CSSis'true', 'yes', '1', every other value isTrue.False
Sentry-related variables:
sentry DSN to send traces. Default empty TODO:SENTRY_DSN
Routes
Webdebugger process these URI paths
- always return/helloHello World! ^_^- always return/healthzOK- return value of uppercased os environment variable/env/<env_var>env_varand/- are all other URI paths. Return request and os environment variables./<path:path>
Development
Requirements
First, you must have installed, to simplify all the operations.
If you haven't, see Makefile for corresponding commands.
Then, you must have installed. See https://python-poetry.org/docs/
Or just run
After that, install dependencies
or
Run tests
pycodestyle
or
pytest
or
hadolint (lint Dockerfile)
Version control
This project use sematic versioning. See semver
For increasee version, use corresponding Makefile targets
- get versionversion- increase version patch numberversion-patch- increase minor versionversion-minor- increase major versionversion-major
NOTE: All chacges must be committed. All these actions, except , create new commit and add tag with version number.
Sentry integration
TODO
Run in docker container
Run with docker-compose
- docker-compose up
App will be available on you'r IP port
Variables (make args)
Make args are the same as environment variables
Commands (make targets)
Build image
Build image and run tests
Run container
Run shell inside container
Author
Aleksey Koloskov vsyscoder@gmail.com