Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
jsen schema to validate Dockerrun.aws.json files
{
"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