ccp.docs/source/methods_examples/Python example-1.0.0.json

83 lines
2.4 KiB
JSON

{
"title": "Python example",
"description": "basic python example",
"version": "1.0.0",
"jobControlOptions": "async-execute",
"metadata": [
{
"role": "category",
"title": "examples"
},
{
"title": "Alfredo Oliviero",
"role": "author",
"href": "https://accounts.d4science.org/auth/admin/realms/d4science/users/b20300b9-d2d7-4ef8-b164-917f661f7ee0"
}
],
"inputs": {
"ccpimage": {
"id": "ccpimage",
"title": "Runtime",
"description": "The image of the runtime to use for method execution. This depends on the infrastructure specific protocol for interacting with registries.",
"minOccurs": 1,
"maxOccurs": 1,
"schema": {
"type": "string",
"format": "none",
"contentMediaType": "text/plain",
"default": "python:3.9.19",
"readOnly": true
}
},
"repository": {
"id": "repository",
"title": "repository url",
"description": "url of the repository of the python application",
"minOccurs": 1,
"maxOccurs": 1,
"schema": {
"type": "string",
"format": "url",
"contentMediaType": "text/plain",
"default": "https://code-repo.d4science.org/gCubeSystem/sortapp.git",
"readOnly": true
}
}
},
"outputs": {},
"additionalParameters": {
"parameters": [
{
"name": "deploy-script",
"value": [
"git clone {{repository}}",
"cd sortapp",
"pip install -r requirements.txt"
]
},
{
"name": "execute-script",
"value": [
"cd sortapp/",
"python sortapp.py"
]
},
{
"name": "undeploy-script",
"value": []
}
]
},
"links": [
{
"rel": "compatibleWith",
"title": "D4Science production Infrastructure",
"href": "infrastructures/d4science-prod-swarm"
}
],
"keywords": [
"python",
"example"
],
"id": "2a59f2ec-9771-44d0-80dc-13f3deb863ed"
}