1f1345718d0d9a62df2ee9612e670c2951343aff
We need this so that we can run the python teststests in a docker container from TeamCity. Tests: > pip install tox > tox
DCOS CLI ======= DCOS CLI with modular subcommands.
Setup
Make sure you meet requirements for installing packages
Install the "wheel" project:
> pip install wheelInstall the tox project:
> pip install toxClone git repo for the dcos cli:
> git clone git@github.com:mesosphere/dcos-cli.gitChange directory to the repo directory:
> cd dcos-cliCreate a virtualenv for the dcos cli project:
> virtualenv --prompt='(dcos-cli) ' env
Configure Development Environment
Activate the virtualenv:
> source env/bin/activateInstall project in develop mode:
> pip install -e .Export DCOS_PATH:
> export DCOS_PATH=<path-to-project>/envExport DCOS_CONFIG:
> mkdir $DCOS_PATH/config > touch $DCOS_PATH/config/Dcos.toml > export DCOS_CONFIG=$DCOS_PATH/env/config/Dcos.toml
Running POC
List command help:
> dcos --helpRun subcommand:
> dcos config --help
Running Tests:
Run tests using tox:
> tox
Notes
Submodule writing notes gathered so far:
- Because we are using python's pip to install packages it looks like we can't install packages that share the same python's package of other installed packages because they will conflict once deployed to virtualenv directory structure.
- Currently we require that subcommands implement an info command. For
example dcos-subcommand implements
subcommand info.
Description
Languages
Python
89.4%
Mustache
4%
HTML
4%
Shell
2.1%
reStructuredText
0.4%
Other
0.1%