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

Handle docker image with missing labels #5

Open groovytron opened 7 years ago

groovytron commented 7 years ago

org.label-schema.memory-hint could not be present (example).

How do we handle such cases?

groovytron commented 7 years ago

label-schema had defined a key for the CPU in a draft but it comes across as being removed. The goal now is to check the presence of the key org.label.schema.cpu-hint. If one or both of those keys were missing, put default values (0.1 for cpus and 32 for memory).