Code Monkey home page Code Monkey logo

cctrl's Introduction

cctrl Build StatusPyPI versionDependency Status

cctrl is a set of command line utilities to help you create and manage applications and users hosted on platforms compatible with cloudControl.

Dependencies

  • python 2.6.x or 2.7.x
  • python-setuptools
  • pip

Installation

To install cctrl:

  • Via pip (non-windows compatible)

    $ (sudo) pip install cctrl

  • Via setup.py

    $ (sudo) python setup.py install

    Dependencies should be automatically fetched by easy_install.

  • Via executable (windows only)

    https://www.cloudcontrol.com/download/win

To upgrade cctrl (non-windows compatible):

$ (sudo) pip install cctrl --upgrade

To check successful installation of cctrl:

$ cctrlapp -v
cctrlapp 1.x.x using pycclib 1.x.x

Configuration

If you don't have an account yet, you can create it with this command:

$ cctrluser create

Once you're done with installation and already have an account, you just need to run one more command to get your setup ready:

$ cctrluser setup

This command will save your email and the SSH public key you will use to authenticate and to push with. See cctrluser setup -h for further setup information.

Usage

See cctrlapp -h to learn about its usage and available commands.

Vagrant Support

This project includes Vagrant support, so you can start an Ubuntu virtual machine with your local cctrl version installed and ready to use. It might be also useful for Windows users, so they can have a more Unix-like experience.

To start a cctrl Vagrant box you need to be inside the project directory and follow these steps:

$ vagrant up
$ vagrant ssh
$ cctrlapp -h

If you're working on project development and want to update your changes, run:

$ vagrant provision

You can find documentation on Vagrant installation and configuration on their official site.

cctrl's People

Contributors

alpe avatar ema-fox avatar fern4lvarez avatar havvg avatar ikusalic avatar krono avatar larsvegas avatar matthiaswiesnercc avatar mkorszun avatar otype avatar parnas avatar pst avatar rajit avatar schu avatar sfriesel avatar syphar avatar tooangel avatar vervas avatar vincentbernat avatar

Stargazers

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

Watchers

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

cctrl's Issues

No module named py2exe

  File "c:\users\vohof\appdata\local\temp\pip_build_vohof\cctrl\setup.py", line
33, in <module>

    import py2exe

ImportError: No module named py2exe

Return deploy information / details after successful deploy

For administration purposes, we keep track of all our production deployments. This way we are able to easily rollback in case of problems.

To do so, we have a spreadsheet with the timestamps, configurations (memory, containers, etc) and revision identifiers.

Currently to acquire the revision identifier, one typically uses either:

cctrlapp applicationName/default details
cctrlapp applicationName/default log deploy

However, it would be nice when it can be returned when the deploy command is succesful, for example:

$ cctrlapp applicationName/default deploy
Email: [email protected]
Password: XYZ

Result: deployed version XYZ (onto X containers with Y memory running stack Z)

This way it saves us an additional command.

I know, not a biggie, but still when performing multiple deploys per day, this becomes 'annoying' :)

Cheers

exoapp prompts "The authorization failed"...

See screenshot. When using the exoapp I get "The authorization failed, check your e-mail address and password." but the cctrlapp gives the possibility to authenticate instead.

screen shot 2014-05-09 at 10 35 46 am

Also happened in below screenshot. Running the same command directly after works though.

screen shot 2014-05-09 at 12 02 02 pm

Unable to access logs (deploy, error, access)

we recently updated cctrlapp to version 1.9.1. Since then, the following strange behavior occurs:

  • can not access logs (deploy, error, access), no username/password is requested
  • after a deploy (and providing username/password), the logs can be accessed

Copy-paste from the console:

➜  cctrlapp appname/default log deploy
Sorry. You are not allowed to perform this action.
➜  cctrlapp appname/default log error 
Sorry. You are not allowed to perform this action.
➜  cctrlapp appname/default log access
Sorry. You are not allowed to perform this action.
➜  cctrlapp appname/default deploy --stack pinky
Email   : [email protected]
Password: 
➜  build  cctrlapp appname/default log deploy          
[Thu Mar 13 14:48:27 2014] lb-37 INFO Routing requests to new version
[Thu Mar 13 14:48:27 2014] lb-40 INFO Routing requests to new version
[Thu Mar 13 14:48:27 2014] lb-39 INFO Routing requests to new version
[Thu Mar 13 14:48:27 2014] lb-38 INFO Routing requests to new version
[Fri Mar 14 00:01:33 2014] lxc-824 INFO Deploying ...
[Fri Mar 14 00:01:34 2014] lxc-821 INFO Deploying ...

You can see that AFTER a deploy and providing credentials, we can access the deploy log.

Is this intended behavior? I guess/hope not ;)

Cheers!

Show public key fingerprints

My use case: I want to remove a public key added to a cctrl user account.

When I run:

$ cctrluser key
> Keys
 vn5HaXXXX
 FweT3XXXX

I get this list of random ids for the public keys. Without fingerprint I don't know which one to remove.

Install failure

I get the following installation error on Arch Linux

Traceback (most recent call last):
File "setup.py", line 20, in
execfile(os.path.join(os.path.dirname(os.path.realpath(file)), 'cctrl', 'version.py'))
NameError: name 'execfile' is not defined

Any idea?

Support Python 3

Are there any plans to support Python 3? At the moment cctrl requires Python 2.

Can add flag-like env vars but not remove them

cctrlapp someapp/default config.add -f 

adds an environment variable -f to the deployment which can't be removed with

cctrlapp someapp/default config.remove -f

This should be consistent one way or the other.

LookupError: unknown encoding: cp720

Hi, I have trouble with Encoding! And I don't know what to do.
This is my first time that I had installed cctrl and I just wanted to add key But I have this problem with encoding. The error is shown in the picture.
I'll Appreciate it if you help me to solve this problem.
Thank you
10-16-2013 05-51-59 -

cctrlapp won't ask for the email address

Hey,

I'm using

$ cctrlapp -v
cctrlapp 1.16.0 using pycclib 1.6.1

. Whenever I want to run some commands e.g. cctrlapp APP_NAME/DEPLOYMENT_NAME addon.creds I am asked for a password but not for the email address. Therefore this results in the following:

$ cctrlapp APP_NAME/DEPLOYMENT_NAME addon.creds
Password:
The authorization failed, check your e-mail address and password.

What's wrong?

cctrluser: running any command got this error: Could not connect to API...

Hi,
I tried different type of cctrluser command and got the error:"Could not connect to API..."
for example: cctrluser create, cctrluser activate, cctrluser key.add

I have an account in CouldControl.com, and I have already activated it by clicking the link that was sent to email address. but in the command line any command does not work.
I have installed Git and ccrtl. The OS is windows 8 Pro - 64-bit.

Please help me.

Thanks
Bobby

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.