Slide 24
Slide 24 text
DEPLOY APPLICATION
Marathon fetch
▸ The list of URIs to fetch before the
task starts.
▸ fetch (HTTP, HTTPS, FTP, FTPS, ...)
▸ [option] extract
▸ [option] executable (chmod +x)
▸ [option] cache
▸ Marathon fetch is build on the
mechanism of Apache Mesos fetcher.
{
"parse": {
"id": "/iqon/crawler/parse",
"container": {
"type": "DOCKER",
"docker": {
"image": "xxxxxx"
},
"volumes": [
{
"containerPath": "/var/app",
"hostPath": "./iqon_crawler"
}
]
},
"fetch": [
{
"uri": "https:// xxxxx /iqon_crawler.tar.gz",
"executable": false,
"extract": true,
"cache": false
}
]
}
}