1.0.4 • Published 6 years ago

nl-doors-v1 v1.0.4

Weekly downloads
5
License
-
Repository
-
Last release
6 years ago

#To run locally

Add this to your ssh config:

Host bastion-dev
  User admin
  Hostname bastion.dev.nightlifr.com
  IdentityFile ~/.ssh/it-keypair.pem
  LocalForward 6379 redis.dev.nightlifr.com:6379
  LocalForward 3306 smally-smalls.cech7hbjyqbt.us-west-1.rds.amazonaws.com:3306
  LocalForward 3389 10.20.65.106:389 
  StrictHostKeyChecking no
  IdentitiesOnly yes

Run the bastion:

ssh bastion-dev

Run the local launch configuration:

Local dev - env

environment setup

there is a special group that needs to be create, the 'devs' group on id 7. When extract is used, it will auto associate the newly created JTs into the devs group.

To inspect the state of all current sessions, go into the nl-web box and run:

production

docker run -i -t prologic/redis-cli -h nl-redis.nightlifr.com

Doors v1 migration:

  1. Create nl_doors_v1 db, utf8 encoding
  2. Import data from old doors into it
  3. Delete constraints
  4. Run migration: sequelize db:migrate
  5. For dev, add the api sets that will enable api sets themselves to be managed, in migrations_manual/bootstrap_permissions.sql
  6. make sure haproxy-all:0.0.3 is deployed so that it can hit the doors-v1 service
  7. make sure the doors-v1 service is running (from deploy/svc.yaml)