TAAR-lite webservice
Перейти к файлу
Victor Ng bbc66cc18f Disabled redis and pgsql waiting in bin/run 2018-03-20 14:21:20 -05:00
bin Disabled redis and pgsql waiting in bin/run 2018-03-20 14:21:20 -05:00
docs Initial commit 2017-08-03 16:42:33 +01:00
static Initial commit 2017-08-03 16:42:33 +01:00
taar_api Fix for issue #33 2018-03-07 13:17:55 -05:00
tests Fix for issue #33 2018-03-07 13:17:55 -05:00
.coveragerc Initial commit 2017-08-03 16:42:33 +01:00
.dockerignore Initial commit 2017-08-03 16:42:33 +01:00
.gitignore Added more artifacts during build to gitignore 2018-03-20 14:21:20 -05:00
Dockerfile Patched Dockerfile to drop django and pgsql references 2018-03-20 14:21:20 -05:00
LICENSE Initial commit 2017-08-03 16:42:33 +01:00
Makefile Initial commit 2017-08-03 16:42:33 +01:00
README.md Fixed links to CircleCI and CodeCov in README 2018-03-05 12:03:03 -05:00
circle.yml Initial commit 2017-08-03 16:42:33 +01:00
contribute.json Update contribute.json 2017-08-15 10:38:36 -04:00
docker-compose.yml Remove redis and postgresql and Django references 2018-03-20 14:21:20 -05:00
manage.py Initial commit 2017-08-03 16:42:33 +01:00
requirements.txt added coverage to requirements.txt 2018-03-20 14:21:20 -05:00
setup.cfg Initial commit 2017-08-03 16:42:33 +01:00
setup.py bumped mozilla-taar2 to version 0.0.19 2018-02-08 21:16:22 -05:00
tox.ini explicitly set PYTHONPATH to /app in tox.ini for testenv:tests 2018-03-20 14:21:20 -05:00

README.md

Taar Api

CircleCI codecov

Dockerflow cookiecutter contains all the boilerplate you need to create a Dockerflow-compliant project.

Instructions for development

  1. Make sure you have docker and docker-compose
  2. make up

Instructions for deployment

The target environment for this project follows the dockerflow conventions. In order to run it correctly, a number of environment variables needs to be set up. The full list of variables can be found in the web section of the docker-compose.yml file. From a services standpoint, this project requires:

  • a Postgres db to store the application data, defined by DATABASE_URL
  • an optional Redis cache service, defined by CACHE_URL

Updating Taar

The core of taar-service lives in the mozilla-taar python package. These are the steps required to deploy a new version of mozilla-taar on taar-api using hashin:

From the root of the repository:

hashin mozilla-taar==<major>.<minor>.<patch>

Then open a pull request with the changes to requirements.txt. Once it's merged to master, the taar api dev service will automatically update.