capgemini / dcos-cli-docker Goto Github PK
View Code? Open in Web Editor NEWA docker image for DCOS CLI :raised_hands:
License: MIT License
A docker image for DCOS CLI :raised_hands:
License: MIT License
hi,
thanks for the cool image, this is just what i was looking for.
i'm having an issue where i run like:
docker run -it -e MESOS_MASTER_URL=http://my.marathon.url -e MARATHON_URL=http://my.marathon.url -e TOKEN=mytoken -e [email protected] capgemini/dcos-cli marathon app list
and i get:
Updating source [https://github.com/mesosphere/multiverse/archive/master.zip]
Updating source [https://github.com/mesosphere/universe/archive/version-1.x.zip]
Traceback (most recent call last):
File "/dcos-cli/bin/dcos-marathon", line 11, in <module>
sys.exit(main())
File "/dcos-cli/lib/python2.7/site-packages/dcoscli/marathon/main.py", line 115, in main
return _main()
File "/dcos-cli/lib/python2.7/site-packages/dcoscli/marathon/main.py", line 128, in _main
return cmds.execute(_cmds(), args)
File "/dcos-cli/lib/python2.7/site-packages/dcos/cmds.py", line 43, in execute
return function(*params)
File "/dcos-cli/lib/python2.7/site-packages/dcoscli/marathon/main.py", line 360, in _list
client = marathon.create_client()
File "/dcos-cli/lib/python2.7/site-packages/dcos/marathon.py", line 27, in create_client
return Client(marathon_url)
File "/dcos-cli/lib/python2.7/site-packages/dcos/marathon.py", line 83, in __init__
version = LooseVersion(self.get_about()["version"])
File "/dcos-cli/lib/python2.7/site-packages/dcos/marathon.py", line 119, in get_about
response = http.get(url, to_exception=_to_exception)
File "/dcos-cli/lib/python2.7/site-packages/dcos/http.py", line 125, in get
return request('get', url, to_exception=to_exception, **kwargs)
File "/dcos-cli/lib/python2.7/site-packages/dcos/util.py", line 448, in timer
return fn(*args, **kwargs)
File "/dcos-cli/lib/python2.7/site-packages/dcos/http.py", line 97, in request
raise to_exception(response)
File "/dcos-cli/lib/python2.7/site-packages/dcos/marathon.py", line 57, in _to_exception
message = response.json().get('message')
File "/dcos-cli/lib/python2.7/site-packages/requests/models.py", line 819, in json
return json.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
any idea what i'm doing wrong?
regards,
tony.
This is awesome. My only issue was that there wasn't the newest version installed in your container, so I had to build from your Dockerfile again and push my own copy. I suspect #2 should resolve this as well, but if you happen to have time to bump the version, that would be fantastic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.