groovytron / maracker

API aiming to make Human Brain Project's Medical Informatics Platform's developped apps deployment on Mesos Marathon easier.
0 stars 2 forks source link

Add some more information in the DB #4

Closed groovytron closed 7 years ago

groovytron commented 7 years ago

Information that could be insteresting to have:

For the environment variables either store JSON object looking like:

{
  "env-vars": [
    {
      "name": "DB_HOST",
      "value": "localhost",
      "description": "Database host name or IP address"
    },
    {
      "name": "DB_PORT",
      "value": "5432",
      "description": "Database host port"
    },
  ]
}

Or create a different env_vars table with a many-to-one relationship. It implies creating a new model but might be easier to manipulate.

Delegating this responsability to the DB seems to be a good start as data might be easier to manipulate (no serilization/deserialization needed).

groovytron commented 7 years ago

No volumes now. It's complicated to manage it on a distributed system. It's too early to think about it.

groovytron commented 7 years ago

Try to use boutiques and a JSONB field in the database for that kind of information.

groovytron commented 7 years ago

If using boutiques, changing the mapping might be needed (examples here and here). The JSONB field would not be needed. boutiques would just be used as a standard data structure used for communication between the back-end and the front-end.

groovytron commented 7 years ago

Done here: https://github.com/groovytron/maracker/commit/bfd7f63b6b09106040d8914aca884d54078f84b4 Some new information might be needed and will be added in the future but the basis in here.