UCL-CloudLabs / deployer

VM Deployer for Azure
1 stars 1 forks source link

Setup DB #8

Open raquelalegre opened 7 years ago

raquelalegre commented 7 years ago

We need to store information about hosts and their configurations created by users.

I will probably use Azure DB for Postgres and SQLAlchemy.

raquelalegre commented 7 years ago

@jonc125 has already done some work on this. He'll be installing a postgres DB on the CloudLabs server containing data about users and hosts. The deployer can use that hosts table from the DB and expose the data in there via REST.

The deployer service can access requests like:

Other things that could be useful are:

jonc125 commented 7 years ago

Re the last point - better to have a call which checks a specific prefix - quicker query on the DB. That's what I'm doing in the front-end at present.