Created
March 12, 2016 12:37
-
-
Save sordina/6094aca9bde8acc15158 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" | |
} | |
} | |
}, | |
"volumes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"host": { | |
"type": "object", | |
"properties": { | |
"sourcePath": { | |
"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" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment