2024-07-23 19:24:08 +02:00
{
2024-10-07 19:59:13 +02:00
"title" : "Bash Example" ,
"description" : "basic bash example" ,
2024-07-23 19:24:08 +02:00
"version" : "1.0.0" ,
"jobControlOptions" : "async-execute" ,
"metadata" : [
{
2024-10-07 19:59:13 +02:00
"role" : "category" ,
"title" : "Examples"
2024-07-23 19:24:08 +02:00
} ,
{
2024-10-07 19:59:13 +02:00
"title" : "Alfredo Oliviero" ,
"role" : "author" ,
"href" : "https://accounts.d4science.org/auth/admin/realms/d4science/users/b20300b9-d2d7-4ef8-b164-917f661f7ee0"
2024-07-23 19:24:08 +02:00
}
] ,
"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" ,
2024-10-07 19:59:13 +02:00
"default" : "" ,
"readOnly" : false
2024-07-23 19:24:08 +02:00
}
} ,
"baseurl" : {
"id" : "baseurl" ,
"title" : "Base URL" ,
2024-10-07 19:59:13 +02:00
"description" : "The base URL of the REST API" ,
2024-07-23 19:24:08 +02:00
"minOccurs" : 1 ,
"maxOccurs" : 1 ,
"schema" : {
"type" : "string" ,
"format" : "url" ,
"contentMediaType" : "text/plain" ,
2024-10-07 19:59:13 +02:00
"default" : "https://REST_API_URL/process" ,
2024-07-23 19:24:08 +02:00
"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" ,
2024-10-07 19:59:13 +02:00
"format" : "select" ,
2024-07-23 19:24:08 +02:00
"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" ,
2024-10-07 19:59:13 +02:00
"default" : ""
2024-07-23 19:24:08 +02:00
}
}
} ,
"outputs" : { } ,
"additionalParameters" : {
"parameters" : [
{
"name" : "deploy-script" ,
"value" : [
"echo {{file}} | base64 -d > /ccp_data/input"
]
} ,
{
"name" : "execute-script" ,
"value" : [
2024-10-07 19:59:13 +02:00
"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"
2024-07-23 19:24:08 +02:00
]
} ,
{
"name" : "undeploy-script" ,
"value" : [ ]
2024-10-07 19:59:13 +02:00
} ,
{
"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"
}
]
2024-07-23 19:24:08 +02:00
}
]
} ,
"links" : [
{
"rel" : "compatibleWith" ,
2024-10-07 19:59:13 +02:00
"title" : "D4Science production Infrastructure" ,
"href" : "infrastructures/d4science-prod-swarm"
2024-07-23 19:24:08 +02:00
}
] ,
"keywords" : [
2024-10-07 19:59:13 +02:00
"bash" ,
"example"
2024-07-23 19:24:08 +02:00
] ,
2024-10-07 19:59:13 +02:00
"id" : "55e290af-4b82-436a-9678-d5ca447a5d05"
}