This webb app show HTTP headers and other useful information
Just run docker container from Docker Hub
docker run -p 8080:8080 vscoder/webdebugger:latest
And now open webdebugger at http://localhost:8080/
App behavior variables:
APP_DELAY
reply delay, secondsAPP_BGCOLOR
set web-page background color. Defaultwhite
APP_NO_CSS
disable loading external CSS or JS resources (usebla inside of isolated environments). Available values: one of'true', 'yes', '1'
isTrue
, every other value isFalse
.
Sentry-related variables:
SENTRY_DSN
sentry DSN to send traces. Default empty TODO:
Webdebugger process these URI paths
/hello
- always returnHello World! ^_^
/healthz
- always returnOK
/env/<env_var>
- return value of uppercased os environment variableenv_var
/
and/<path:path>
- are all other URI paths. Return request and os environment variables.
First, you must have make
installed, to simplify all the operations.
If you haven't, see Makefile for corresponding commands.
Then, you must have poetry
installed. See https://python-poetry.org/docs/
Or just run
make install_poetry
After that, install dependencies
make requirements
or
poetry install --local
make pycodestyle
or
poetry run pycodestyle webdebugger/
make pytest
or
poetry run pytest -v
make hadolint
This project use sematic versioning. See semver
For increasee version, use corresponding Makefile targets
version
- get versionversion-patch
- increase version patch numberversion-minor
- increase minor versionversion-major
- increase major version
NOTE: All chacges must be committed. All these actions, except version
, create new commit and add tag with version number.
TODO
docker-compose up
App will be available on you'r IP port 8000
Make args are the same as environment variables
Build image
make build
Build image and run tests
make docker-pytest
Run container
make docker-run
Run shell inside container
make docker-shell
Aleksey Koloskov [email protected]