Skip to content

jonnybazookatone/ADSDeploy_priv

Repository files navigation

ADSDeploy

Deployment, testing, and GUI pipeline for the ADS application tier

Build Status Coverage Status

dev setup - vagrant (docker)

  1. vim ADSDeploy/local_config.py #edit, edit
  2. vagrant up db rabbitmq app --provider=docker
  3. vagrant ssh app
  4. cd /vagrant

This will start the pipeline inside the app container - make sure you have configured endpoints and access tokens correctly.

We are using 'docker' provider (ie. instead of virtualbox VM, you run the processes in docker). On some systems, it is necessary to do: export VAGRANT_DEFAULT_PROVIDER=docker or always specify `--provider docker' when you run vagrant.

The directory is synced to /vagrant/ on the guest.

dev setup - local editing

If you (also) hate when stuff is unnecessarily complicated, then you can run/develop locally (using whatever editor/IDE/debugger you like)

  1. virtualenv python
  2. source python/bin/activate
  3. pip install -r requirements.txt
  4. pip install -r dev-requirements.txt
  5. vagrant up db rabbitmq --provider=docker

This will setup python virtualenv and the database + rabbitmq. You can run the pipeline and tests locally.

RabbitMQ

vagrant up rabbitmq

The RabbitMQ will be on localhost:6672. The administrative interface on localhost:25672.

Database

vagrant up db

PostgreSQL on localhost:6432

production setup

vagrant up prod

It will automatically download/install the latest release from the github (no, not your local changes - only from github).

If you /ADSDeploy/prod_config.py is available, it will copy and use it in place of local_config.py

No ports are exposed, no SSH access is possible. New releases will deployed automatically.

Typical installation:

  1. vim ADSDeploy/prod_config.py # edit, edit...
  2. vagrant up prod

production setup - docker way

  1. cd manifests/production/app
  2. docker build --name ADSDeploy -t ADSDeploy .
  3. cd ../../..
  4. vim prod_config.py # edit, edit...
  5. dockerun -d -v .:/vagrant/ --name ADSDeploy ADSDeploy /sbin/my_init

Here are some useful commands:

  • restart service

    docker exec ADSDeploy sv restart app

  • tail log from one of the workers

    docker exec ADSDeploy tail -f /app/logs/ClaimsImporter.log

develop

About

Deployment, testing, and GUI pipeline for the ADS application tier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published