Coder Social home page Coder Social logo

roger-mesos-tools's Introduction

roger-mesos-tools Build Status

Tools to connect to and work with RogerOS, Moz's cluster OS based on mesos.

Build

$ python setup.py build

Run tests

$ python setup.py test

Generate source distribution

$ python setup.py sdist

Install

$ python setup.py install OR pip install -e .

Use

  • roger -h
  • roger <command> -h

Uninstall

pip uninstall roger_mesos_tools

With virtualenv

virtualenv venv
source venv/bin/activate
pip install -e .
# run roger commands
deactivate

roger-mesos-tools's People

Contributors

04msambit avatar amitbose327 avatar ankanm avatar grant1219 avatar jordmoz avatar miroswan avatar ranjanmanish avatar thedahv avatar vmahedia avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

roger-mesos-tools's Issues

Fix issue with get_app_id

It looks like the method is defined in the ABS, then also implemented in the framework classes, but with a different signature that is incompatible with who it is called from roger_promote. Resolve in a branch and try from the roger-cli vagrant box by running /vagrant/scripts/get-roger-tools install BRANCH_NAME in the roger-cli VM. When it's working, make sure the unit tests pass and submit a PR for review.

roger gitpull errors with "environment" arg not defined

I'm admittedly working with a Roger VM I haven't touched in a while. I rebuilt my local VM and tried getting the code for an existing Roger project into the VM, and I ran into some troubles with the gitpull tool.

Granted, I am very unfamiliar Roger CLI internals and with Python in general, so this is a shot in the dark. I believe the code that parses the arguments fails to pull in an environment property on my build. Moreover, looking at the code, it appears to set up a default environment local variable that is overridden by the args and then runs the procedure without actually using it.

Roger version:

vagrant@roger-cli:~$ roger -v
0.4.24

Command output

vagrant@roger-cli:~$ roger gitpull sodo local_deploys local.json
root: /usr/local/lib/python2.7/dist-packages command: gitpull args: ['sodo', 'local_deploys', 'local.json']
Args parsed:
Namespace(app_name='sodo', branch=None, config_file='local.json', directory='local_deploys', verbose=False)
******Executing GIT PULL of application repo******
ERROR:root:'Namespace' object has no attribute 'environment'
Traceback (most recent call last):
  File "/usr/local/bin/roger_gitpull.py", line 97, in main
    exit_code = hooksObj.run_hook(hookname, data, args.directory, args.environment, settingObj.getUser())
AttributeError: 'Namespace' object has no attribute 'environment'
/usr/local/bin/roger_gitpull.py:119 fn:main - AttributeError("'Namespace' object has no attribute 'environment'",)
ERROR:root:'Namespace' object has no attribute 'environment'
Traceback (most recent call last):
  File "/usr/local/bin/roger_gitpull.py", line 138, in <module>
    roger_gitpull.main(settingObj, appObj, gitObj, hooksObj, args)
  File "/usr/local/bin/roger_gitpull.py", line 97, in main
    exit_code = hooksObj.run_hook(hookname, data, args.directory, args.environment, settingObj.getUser())
AttributeError: 'Namespace' object has no attribute 'environment'
/usr/local/bin/roger_gitpull.py:140 fn:<module> - AttributeError("'Namespace' object has no attribute 'environment'",)

Python 3 support

Hello,
I'm just starting to test project, but seems it only supports python 2.x.
Is there a plan for supporting py3?

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.