Comments (5)
*Environment:
*
marathon-1.1.1
marathon-python-0.8.1
Python 2.7.5
Linux 3.10.0-327.el7.x86_64
from marathon-python.
Huh. I guess we don't have an param for the name
field in the port mapping model?
Can you pb the actual json that marathon returned? And if you feel adventurous to scratch your own itch, can you add a name
parameter to that model so it can understand it?
from marathon-python.
Normal accessed through api:
curl http://10.0.2.47:8090/v2/apps
return:
{"apps":[{"id":"/mysqlt1","cmd":null,"args":null,"user":null,"env":{"MYSQL_ROOT_PASSWORD":"123456"},"instances":1,"cpus":1,"mem":256,"disk":300,"executor":"","constraints":[],"uris":[],"fetch":[],"storeUrls":[],"ports":[4406],"portDefinitions":[{"port":4406,"protocol":"tcp","labels":{}}],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":{"type":"DOCKER","volumes":[],"docker":{"image":"mysql:5.6","network":"BRIDGE","portMappings":[{"containerPort":3306,"hostPort":0,"servicePort":4406,"protocol":"tcp","name":"mysqlport","labels":{}}],"privileged":false,"parameters":[],"forcePullImage":false}},"healthChecks":[],"readinessChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1,"maximumOverCapacity":1},"labels":{},"acceptedResourceRoles":null,"ipAddress":null,"version":"2016-05-09T08:03:27.589Z","residency":null,"versionInfo":{"lastScalingAt":"2016-05-09T08:03:27.589Z","lastConfigChangeAt":"2016-04-29T09:46:13.648Z"},"tasksStaged":1,"tasksRunning":0,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[]},{"id":"/myapp3","cmd":"sleep 100","args":null,"user":null,"env":{},"instances":2,"cpus":1,"mem":16,"disk":0,"executor":"","constraints":[],"uris":[],"fetch":[],"storeUrls":[],"ports":[10000],"portDefinitions":[{"port":10000,"protocol":"tcp","labels":{}}],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":null,"healthChecks":[],"readinessChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1,"maximumOverCapacity":1},"labels":{},"acceptedResourceRoles":null,"ipAddress":null,"version":"2016-05-09T09:54:52.749Z","residency":null,"versionInfo":{"lastScalingAt":"2016-05-09T09:54:52.749Z","lastConfigChangeAt":"2016-05-09T09:52:03.943Z"},"tasksStaged":0,"tasksRunning":2,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[]}]}
from marathon-python.
May be the reason:
MarathonMinimalJsonEncoder
from marathon-python.
Thank you, the problem has been resolved
from marathon-python.
Related Issues (20)
- File-based secrets aren't supported
- Support marathon pods api HOT 1
- Lack of support for container.networks HOT 1
- from_json always creates mappings with host port
- SSE SSL authentication not supported HOT 2
- Travis tests are broken
- Client should be updated to follow /v2/events redirection responses
- Add asyncio support HOT 6
- Support custom fields in application definition HOT 1
- Add support for proxies
- from_json with None crashes event stream
- Downloading Log For App HOT 1
- MarathonClient().scale_group does not support force parameter
- support status query parameter for "/v2/tasks"
- about view one instance app logs real time HOT 2
- List apps returns TypeError HOT 7
- unexpected keyword argument 'tasks_stats' with client.get_app('app_id', embed_task_stats=True) HOT 1
- Unexpected Keyword argument enforce_role on marathon.get_group
- New Release? HOT 1
- drop use_2to3 command from setup.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marathon-python.