Closed Darkhogg closed 5 years ago
Please post this against Marathon: https://jira.mesosphere.com/projects/MARATHON/issues/MARATHON-7261?filter=allopenissues
I will, but... which of my attemps should have been successful, if any?
It's not super clear from your post what exactly you ran and what your app definition looks like, but this example should help:
$ cat cli/tests/data/marathon/apps/zero_instance_sleep.json
{
"id": "zero-instance-app",
"cmd": "sleep 1000",
"cpus": 0.1,
"mem": 16,
"instances": 0,
"dependencies": ["/product/database", "../backend"],
"labels": {
"PACKAGE_ID": "zero-instance-app",
"PACKAGE_VERSION": "1.2.3"
}
}
$ dcos marathon app add cli/tests/data/marathon/apps/zero_instance_sleep.json
Created deployment 533751c4-c37c-442d-89ec-7cca571e3dfa
$ dcos marathon app update zero-instance-app < cli/tests/data/marathon/apps/update_zero_instance_sleep.json
Created deployment de113567-343a-4528-8560-e543e4279578
$ dcos marathon app update zero-instance-app mem=2
Created deployment b35ef6fe-8832-4ca6-b72a-4f325c1a9682
The files referenced are all in this repo.
Do I have to provide the whole JSON just to modify the Docker image in use? Piping is probably the only thing I didn't try, I assumed it would work the same as editing fields. Let me check if it works...
The related dcos-cli command is dcos marathon app restart [--force]
I've tried every variation I've come up with to try and update the
container.docker.image
parameter, and nothing else, usingdcos marathon app update
: Specifying the path ascontainer.docker.image
,container/docker/image
and/container/docker/image
; passing as value an object with{"docker":{"image":"..."}}
, etc.I can't seem to be able to update it in any way, what am I doing wrong? What should I do instead? Thank you.