Skip to content

Instantly share code, notes, and snippets.

@sordina
Created March 12, 2016 12:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save sordina/6094aca9bde8acc15158 to your computer and use it in GitHub Desktop.
Save sordina/6094aca9bde8acc15158 to your computer and use it in GitHub Desktop.
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