Giter VIP home page Giter VIP logo

dcos-spark's Introduction

DCOS Spark Subcommand

Basic DCOS subcommand

Setup

  1. Make sure you meet requirements for installing packages

  2. Clone git repo for the dcos spark cli:

    git clone [email protected]:mesosphere/dcos-spark.git
    
  3. Change directory to the repo directory:

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

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

    make env
    

Configure Environment and Run

  1. TODO: Talk about how to configure the root dcos cli

  2. source the setup file to add the dcos-spark command line interface to your PATH:

    source env/bin/activate
    
  3. Get started by calling the DCOS Spark CLI's help:

    dcos-spark help
    

When invoking dcos subcommands from the dev env it includes the dcos- as a prefix, however when this is included into DCOS it will be a subcommand of dcos and will be invoked by dcos spark. dcos-spark help translates to dcos spark help when installed into the dcos-cli.

  1. Leaving the env

    deactivate

Running Tests:

Setup

Tox, our test runner, tests against both Python 2.7 and Python 3.4 environments.

If you're using OS X, be sure to use the officially distributed Python 3.4 installer_ since the Homebrew version is missing a necessary library.

Running

Tox will run unit and integration tests in both Python environments using a temporarily created virtualenv.

You should ensure DCOS_CONFIG is set and that the config file points to the Marathon instance you want to use for integration tests.

There are two ways to run tests, you can either use the virtualenv created by make env above:

make test

Or, assuming you have tox installed (via sudo pip install tox):

tox

Other Useful Commands

  1. List all of the supported test environments:

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

    tox -e <testenv>
    

dcos-spark's People

Contributors

tnachen avatar mgummelt avatar jsancio avatar kensipe avatar sttts avatar ssk2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.