No commit activity in last 3 years
No release in over 3 years
Various utilities to help with OpenShift cartridge development
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.7.2
 Project Readme

OpenShift Cartridge Tools

This is a set of tools that makes the OpenShift cartridge/quickstart developers life easier.

oo-cartridge-lint

The OpenShift Cartridge Lint is an utility which helps developers to test the validity and syntax of the cartridge metadata.

In future this command will be expanded to provide more functionality, but for now you can use it to validate the cartridge 'manifest.yml' file to make sure you haven't missed some required attribute or you not made the syntax error.

Using oo-cartridge-lint

To check your current cartridge, you can run the following command:

$ cd cartridge-dir/
$ oo-cartridge-lint manifest

The output should tell you if your manifest.yml has correct syntax or not. The sample output might look like this:

 ~/code/openshift-origin-cartridge-ruby → oo-cartridge-lint manifest --file metadata/manifest.yml.rhel
[openshift-origin-cartridge-ruby/metadata/manifest.yml.rhel] INVALID
  [/] - key 'Description:' is required.
  [/Architecture] - 'arm': invalid Architecture value.

(Note: The --file option is optional, by default the command will check the metadata/manifest.yml path.

oo-cartridge-create

This command will create and prepare directory with DIY cartridge. It is basically a bootstrap script for the new cartridge.

Using oo-cartridge-create

$ oo-cartridge-create diy --name openshift-sidekiq-cartridge
Cartridge-Short-Name (eg. "redis"): sidekiq
Version: 1.0
The './openshift-sidekiq-cartridge/' cartridge was succesfully created...

The 'openshift-sidekiq-cartridge' directory will then contain a DIY cartridge bootstrap and you could start adding your code into it.

Dependencies:

(Don't worry, these dependencies are installed automatically for you)

Installation:

$ gem install oo-cartridge-tools