Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Latest commit

 

History

History
70 lines (54 loc) · 1.45 KB

README.md

File metadata and controls

70 lines (54 loc) · 1.45 KB

vmmaster

Build Status Coverage

Dependencies:

  • python 2.7 only
  • tox
  • postgresql

How to use?

Run application

  • install dependencies:
./install_dependencies.sh
sudo pip install tox
tox -e base
  • create base config:
cp ./config_template.py config.py
  • migrations and run:
.tox/bin/python manage.py migrations
.tox/bin/python manage.py runserver

Run in docker container

  • image build:
docker build --tag=<image_name>:<image_version> .
  • create enviroment variables file or put environment variables in docker run command

  • run migrations:

docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --privileged --net=host <image_name>:<images_version> python manage.py migrations
  • run container:
docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --privileged --net=host <image_name>:<images_version> python manage.py runserver

Development

Environment

./install-hooks.sh

Linting

.tox/bin/flake8 vmmaster/ tests/

Unittests with coverage

tox -e unit-with-coverage

Open coverage/index.html in web browser.

Documentation

More information