{ "title": "Bash Example", "description": "basic bash 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": "url", "contentMediaType": "text/plain", "default": "", "readOnly": false } }, "baseurl": { "id": "baseurl", "title": "Base URL", "description": "The base URL of the REST API", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "url", "contentMediaType": "text/plain", "default": "https://REST_API_URL/process", "readOnly": true } }, "file": { "id": "file", "title": "Input file", "description": "The input file to be annotated", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "file", "contentMediaType": "text/plain", "default": "" } }, "contenttype": { "id": "contenttype", "title": "Content type", "description": "The content type of the input file", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "select", "contentMediaType": "text/plain", "default": "text/plain", "enum": [ "text/plain", "application/pdf", "text/html" ] } }, "credentials": { "id": "credentials", "title": "Credentials", "description": "The Basic auth credentials", "minOccurs": 1, "maxOccurs": 1, "schema": { "type": "string", "format": "secret", "contentMediaType": "text/plain", "default": "" } } }, "outputs": {}, "additionalParameters": { "parameters": [ { "name": "deploy-script", "value": [ "echo {{file}} | base64 -d > /ccp_data/input" ] }, { "name": "execute-script", "value": [ "wget {{baseurl}}/{{service}}?annotations={{annotations}} --post-file /ccp_data/input --header \\\"Authorization: Basic {{credentials}}\\\" --header \\\"Content-Type: {{contenttype}}\\\" --header \\\"Accept: application/json\\\" -O /ccp_data/annotated.json" ] }, { "name": "undeploy-script", "value": [] }, { "name": "lifecycle", "value": [ { "time": "2024-10-04T15:45:08.441Z", "type": "created", "user": "https://accounts.d4science.org/auth/admin/realms/d4science/users/b20300b9-d2d7-4ef8-b164-917f661f7ee0", "context": "%2Fd4science.research-infrastructures.eu%2FD4Research%2FFOSSR-Lab" } ] } ] }, "links": [ { "rel": "compatibleWith", "title": "D4Science production Infrastructure", "href": "infrastructures/d4science-prod-swarm" } ], "keywords": [ "bash", "example" ], "id": "55e290af-4b82-436a-9678-d5ca447a5d05" }