Skip to content

vscoder/trytravis-otus

Repository files navigation

webdebugger

Build Status

This webb app show HTTP headers and other useful information

Development

Requirements

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

Run tests

pycodestyle

make pycodestyle

or

poetry run pycodestyle webdebugger/

pytest

make pytest

or

poetry run pytest -v

hadolint (lint Dockerfile)

make hadolint

Version control

This project use sematic versioning. See semver

For increasee version, use corresponding Makefile targets

  • version - get version
  • version-patch - increase version patch number
  • version-minor - increase minor version
  • version-major - increase major version

NOTE: All chacges must be committed. All these actions, except version, create new commit and add tag with version number.

Run in docker container

Run with docker-compose

  • docker-compose up

App will be available on you'r IP port 80

Variables (make args)

  • APP_PORT app listen port and container port to expose
  • APP_DELAY delay, in seconds, before render web page

Commands (make targets)

Build image

make build

Build image and run tests

make docker-pytest

Run container

make docker-run

Run shell inside container

make docker-shell

Author

Aleksey Koloskov vsyscoder@gmail.com

About

Reoisitory to test .travis.yml pipelines via trytravis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published