Forked from sordina/dockerrun-jsen-schema.json
Last active
September 21, 2018 06:21
-
-
Save kitsuyui/3fb8e6ab1c433e434c5b6c0b0cb58b9b to your computer and use it in GitHub Desktop.
jsen schema to validate Dockerrun.aws.json files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"AWSEBDockerrunVersion": { | |
"type": "integer", | |
"minimum": 1, | |
"maximum": 2 | |
}, | |
"authentication": { | |
"type": "object", | |
"properties": { | |
"bucket": { | |
"type": "string" | |
}, | |
"key": { | |
"type": "string" | |
} | |
} | |
}, | |
"memoryReservation": { | |
"type": "number" | |
}, | |
"volumes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"host": { | |
"type": "object", | |
"properties": { | |
"sourcePath": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"volumesFrom": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": ["sourceContainer"], | |
"properties": { | |
"sourceContainer": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"containerDefinitions": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": [ | |
"name", | |
"image" | |
], | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"image": { | |
"type": "string" | |
}, | |
"memory": { | |
"type": "integer" | |
}, | |
"essential": { | |
"type": "boolean" | |
}, | |
"command": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"mountPoints": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"sourceVolume": { | |
"type": "string" | |
}, | |
"containerPath": { | |
"type": "string" | |
}, | |
"readOnly": { | |
"type": "boolean" | |
} | |
} | |
} | |
}, | |
"portMappings": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"containerPort": { | |
"type": "integer" | |
}, | |
"hostPort": { | |
"type": "integer" | |
} | |
} | |
} | |
}, | |
"environment": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"value": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"links": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"logConfiguration": { | |
"type": "object", | |
"required": ["logDriver"], | |
"properties": { | |
"logDriver": { | |
"type": "string" | |
}, | |
"options": { | |
"type" :"object" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment