-
Notifications
You must be signed in to change notification settings - Fork 31
ATLAS schema collection
Lukas edited this page Feb 16, 2016
·
13 revisions
I'm just collecting some schemas and test instances here for this issue
https://github.com/cernanalysispreservation/analysis-preservation.cern.ch/issues/70
once this is done, we can delete this page
Description: This schema defines a Docker Environment
mandatory fields:
- environment-type
- image
optional fields:
- resources
- environment variables
- environment script
- image tag
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://jsonschema.net",
"type": "object",
"properties": {
"environment-schema": {
"id": "http://jsonschema.net/environment-schema",
"type": "string",
"enum":["docker-encapsulated"],
"default":"docker-encapsulated"
},
"image": {
"id": "http://jsonschema.net/image",
"type": "string"
},
"imagetag": {
"id": "http://jsonschema.net/imagetag",
"type": "string",
"default":"latest"
},
"resources": {
"id": "http://jsonschema.net/resources",
"type": "array",
"default":null
},
"envscript": {
"id": "http://jsonschema.net/envscript",
"type": "string",
"default":null
},
"envvars": {
"id": "http://jsonschema.net/envars",
"type": "object",
"default":null
}
},
"required": [
"environment-type",
"image"
]
}
{
"environment-type": "docker-encapsulated",
"image": "lukasheinrich/walkthrough_one",
}
{
"environment-type": "docker-encapsulated",
"image": "lukasheinrich/walkthrough_one",
"imagetag":"latest",
"resources":["CVMFS","GRIDProxy"],
"envscript":"/resources/setup.sh",
"envvars":{"ROOTSYS":"/usr/local"}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://jsonschema.net",
"type": "object",
"properties": {
"publisher-type": {
"id": "http://jsonschema.net/schema",
"type": "string",
"enum": ["process-attr-pub"]
},
"output_map": {
"id": "http://jsonschema.net/output_map",
"type": "object"
}
},
"required": [
"publisher-type"
]
}
Test instances
{
"publisher-type": "process-attr-pub"
}
{
"publisher-type": "process-attr-pub",
"output_map": {
"output": "outList",
"another output": ["onePar", "anotherPar"]
}
}