Deployment automation for the DataHub. This will setup all services on existing docker node, to set up everything locally, via docker-compose, please take a look at DockerCompose.md
Git clone then install the requirements:
pip install -r requirements.txt
Set up your configuration variables in a file called .env
. You can copy paste and .env.template
.
Note: for multiline variable values you must replace newlines with \n
and quote the variable e.g. a variable that looks like this originally:
----BEGIN PUBLIC KEY-----
...
...
Must be in the .env
file like this:
PUBLIC_KEY="----BEGIN PUBLIC KEY-----\n...\n..."
JWT_TOKEN
- authentication token You can get it from~/.datahub.json
file.DOMAIN_API
- base APISTAGE
- e.g. testing, staging, productionDOMAIN_BASE
- base domain to which prefixes are added such asSTAGE
and specific servicesDOMAIN
-STAGE
.DOMAIN_BASE
Run the script and it will list the available commands:
python main.py
Main one right now is:
python main.py docker
Sometimes this times out on the redeploy as the update hasn't finished. In that case just run:
Note: Node cluster with tag name ${PROJECT}-${STAGE} should exist on docker-cloud
python main.py docker_deploy
To check docker, API, frontend:
python main.py check