Sign inSign up

basho/dcos-proxy-shim

By basho

•Updated over 10 years ago

This is a proxy designed to enable the use of the DCOS cli in the open source Mesos environment.

Image
0

871

basho/dcos-proxy-shim repository overview

⁠dcos-proxy-shim

This is a proxy designed to enable the use of the DCOS cli⁠ in the open source Mesos environment.

It is based on the code from the dcos-proxy project by dparrish⁠, but modified for this specific use case.

Use the sample JSON file⁠ for deployment against the Marathon HTTP API, as this piece is necessary for DCOS cli itself to work.

curl -v -XPOST http://MARATHON_HOST:8080/v2/apps -d @./dcos-proxy-shim.json -H "Content-Type: application/json"

After it successfully deploys, set core.dcos_url for DCOS cli like this:

dcos set core.dcos_url "http://$(curl -s http://MARATHON_HOST:8080/v2/apps/dcos-proxy-shim/tasks | jq '.tasks[] | "\(.host) \(.ports[0])"' | tr ' ' ':' | tr -d '"')"

The refresh job runs every 10 seconds, looking at all your apps, and creating a proxy entry directed to the first port supplied.

This is available as a Docker image on Docker Hub⁠.

Tag summary

Content type

Image

Digest

Size

173.4 MB

Last updated

over 10 years ago

docker pull basho/dcos-proxy-shim