36 lines
955 B
Python
36 lines
955 B
Python
import multiprocessing
|
|
|
|
DEFAULTS = {
|
|
'builder': {
|
|
'workers': multiprocessing.cpu_count(),
|
|
'keep_image_tree_consistency': True,
|
|
'build_base_images_if_not_exist': True,
|
|
'push': False,
|
|
'no_cache': False,
|
|
'docker': {
|
|
'base_url': 'unix://var/run/docker.sock'
|
|
}
|
|
}
|
|
}
|
|
|
|
SCHEMA = {
|
|
'builder': {
|
|
'type': 'object',
|
|
'additionalProperties': False,
|
|
'properties': {
|
|
'workers': {'type': 'integer'},
|
|
'keep_image_tree_consistency': {'type': 'boolean'},
|
|
'build_base_images_if_not_exist': {'type': 'boolean'},
|
|
'push': {'type': 'boolean'},
|
|
'no_cache': {'type': 'boolean'},
|
|
'docker': {
|
|
'type': 'object',
|
|
'additionalProperties': False,
|
|
'properties': {
|
|
'base_url': {'type': 'string'}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|