whole-tale / girder_wholetale

Girder plugin providing basic Whole Tale functionality
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

Add minimal schema validation for containerConfig #538

Closed craig-willis closed 2 years ago

craig-willis commented 2 years ago

Schema changes to accompany https://github.com/whole-tale/ngx-dashboard/pull/275

How to test Using this branch with https://github.com/whole-tale/ngx-dashboard/pull/275

These should pass validation:

{ 
   "memLimit": "1g",
   "environment": [ "X=Y"],
   "targetMount": "/my/mount"
} 

Note: Docker is pretty liberal with env vars.

These should fail validation:

{ 
   "memLimit": "argle",
   "environment": [ "=X"],
   "targetMount": "my/mount"
}