Development

With docker

Build image

docker build -t pg_bawler .

Run tests

docker run \
   -u root \
   -v $(pwd):/opt/pg_bawler \
   -v /var/run/docker.sock:/var/run/docker.sock \
   -t pg_bawler \
   /bin/sh runtests.sh

With local virtualenv

Note

Make sure that you are using python 3.5+

Note

For running tests persmissions for using docker are required.

Create virtualenv for example with venv.

python3 -m venv /path/to/new/virtual/environment

Activate created environment

source /path/to/new/virtua/environment/bin/activate

With activated virtual environment, install dependencies

pip install \
    -r requirements.txt \
    -r test-requirements.txt \
    -r dev-requirements.txt

To verify the installation run the tests

./runtests.sh