Files
deb-python-dcos/pydoc
José Armando García Sancio b2e9527e93 DCOS-422 Implement event emitter
We need this to eventually be able to colorize the output for JSON
TOML, etc. Change all references of print to emitter.publish. We also
removed the subcommand command.

Need to do a `make clean env` after this change.
2015-02-17 06:37:54 +00:00
..
2015-02-01 23:48:12 +00:00
2015-02-17 06:37:54 +00:00

DCOS Command Line Interface

The DCOS Command Line Interface (CLI) is a command line utility supporting several commands to provide an user friendly yet powerful way to manage DCOS installations.

Dependencies

  1. git must be installed and on the system path in order to fetch packages from git sources.

Setup

  1. Make sure you meet requirements for installing packages

  2. Clone git repo for the dcos cli:

    git clone git@github.com:mesosphere/dcos-cli.git
  3. Change directory to the repo directory:

    cd dcos-cli
  4. Make sure that you have virtualenv installed. If not type:

    sudo pip install virtualenv
  5. Create a virtualenv for the dcos cli project:

    make env

Configure Development Environment

  1. Activate the virtualenv:

    source env/bin/activate
  2. Export DCOS_PATH:

    export DCOS_PATH=$(pwd)/env
  3. Export DCOS_CONFIG:

    export DCOS_CONFIG=$(pwd)/tests/data/Dcos.toml

Running POC

  1. Get started by calling DCOS CLI help:

    dcos --help

Running Tests:

  1. Run all DCOS CLI tests (make sure that you are running Zookeeper, Mesos and Marathon):

    tox
  2. List all of the supported test environments:

    tox --listenvs
  3. Run a specific set of tests:

    tox -e <testenv>