cowens / taas

UN-OCHA Taxonomy As A Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UN-OCHA Taxonomy As A Service

Build Status Coverage Status Code Climate Issue Count

This code that powers the UN Office for the Coordination of Humanitarian Affairs (UN-OCHA) Taxnonomy as a Service APIs.

Building the code

The easy way:

$ make

Running the code:

Activate the virtual environment:

$ . env/bin/activate

Fetch updates with fetch. Make sure you have the UN-OCHA/taas-data directory checked out the same level as taas, or set your TAAS_DATA environment variable first.

$ fetch

Create a pull-request using update.py:

$ bin/update.py

Contributing

Please run make freeze when making code changes with new libraries, so we get any updated library requirements along with your code.

Running from Docker

If you really want to...

$ git checkout UN-OCHA/taas
$ git checkout UN-OCHA/taas-data
$ cd taas
$ docker build .
$ docker run                                                \
    --rm --name tmp-tass                                    \
    -v ~/.config/hub:/root/.config/hub                      \
    -v ~/.ssh:/root/.ssh                             \
    -v ~/taas:/tmp/taas                                     \
    -v ~/taas-data:/tmp/taas-data                           \
    -w /tmp/taas                                            \
    -e 'TAAS_PR_LABEL=dockertest'                           \
    -e 'GIT_COMMITTER_NAME=BeepBoop'                        \
    -e 'GIT_COMMITTER_EMAIL=paul@humanitarianresponse.info' \
    -e 'GIT_AUTHOR_NAME=BeepBoop'                           \
    -e 'GIT_AUTHOR_EMAIL=paul@humanitarianresponse.info'    \
    YourDockerBuildHere make update

Things to note:

  • You must have run hub at least once to generate your ~/.config/hub token.
  • I'm a docker n00b, so there's almost a better way to do all of the above. Patches welcome!

About

UN-OCHA Taxonomy As A Service

License:Other


Languages

Language:Python 80.3%Language:Perl 12.2%Language:Makefile 7.5%