Docker

You can install a development and test environment using docker.

Assumptions

  • You have docker installed and working on your system
  • The user you are using has permissions to use docker

Create a virtualenv (optional)

Installing with virtualenv keeps your host environment clean, and separates your development environment from the host.

For example:

$ mkvirtualenv pootle
$ cd ~/virtualenvs/pootle

Clone the pootle repository

You most likely want to clone your fork of the pootle repository, so you can easily create Pull Requests for your changes.

(pootle): git clone git@github.com:$USER/pootle
(pootle): cd pootle/

Install host requirements

(pootle): pip install -r requirements/host.txt

Install the pootle database

The default installer will create a postgresql database with

(pootle): makey install-dev

This will take some time as it loads the default projects

Run the development server

Once Pootle is installed you can run the development server with

(pootle): makey runserver