cat <<EOF | http http://localhost:8000/api/scheduler/v1/tasks | jq -r '.id' | xargs sh -c 'echo TASK_ID=$0' | sh
{
"runtime": {
"image": "wlezzar/java:8",
"networkMode": "host",
"cmd": [
"bash",
"-c",
"sleep 3 && curl -XPOST -v -H \"Content-type: application/json\" -d '{\"hello\": \"world\"}' $RESPONSE_URL"
]
},
"config": {}
}
EOF
Content type
Image
Digest
Size
290.2 MB
Last updated
about 7 years ago
docker pull wlezzar/segmentor-scheduler