Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The application_just_nodejs cookbook has been deprecated

Author provided reason for deprecation:

The application_just_nodejs cookbook has been deprecated and is no longer being maintained by its authors. Use of the application_just_nodejs cookbook is no longer recommended.

You may find that the application_nodejs cookbook is a suitable alternative.

RSS

application_just_nodejs (1) Versions 0.0.1

Deploys and configures node.js-based applications

Policyfile
Berkshelf
Knife
cookbook 'application_just_nodejs', '~> 0.0.1', :supermarket
cookbook 'application_just_nodejs', '~> 0.0.1'
knife supermarket install application_just_nodejs
knife supermarket download application_just_nodejs
README
Dependencies
Quality 17%

application_just_nodejs

A simpler version of: https://github.com/conradev/application_nodejs

Description

This cookbook is designed to be able to describe and deploy node.js applications.

Note that this cookbook provides the node.js-specific bindings for the application cookbook; you will find general documentation in that cookbook.

Requirements

Chef 11.0.0 or higher required (for Chef environment use).

The following Opscode cookbooks are dependencies:

  • application

Resources/Providers

The LWRP provided by this cookbook is not meant to be used by itself; make sure you are familiar with the application cookbook before proceeding.

just_nodejs

The just_nodejs sub-resource LWRP deals with deploying node.js apps from an SCM repository. It uses the deploy_revision LWRP to perform the bulk of its tasks, and many concepts and parameters map directly to it. Check the documentation for deploy_revision for more information.

It will install specified modules using npm install.

Attribute Parameters

  • npm_command: The command to execute when calling bundler commands. Useful for specifing alternate commands. Defaults to npm.
  • npm_options: additional options which will be appended to the end of the npm command string.

Usage

A sample recipe that uses the nodejs cookbook to provide node.js and application_procfile to start the app:

node.default['nodejs']['version'] = '0.10.28'
node.default['nodejs']['npm'] = '1.4.9'

include_recipe 'nodejs'
include_recipe 'nodejs::install_from_source'
include_recipe 'application_procfile'

application 'example' do
  path '/srv/example'

  owner 'ubuntu'
  group 'ubuntu'

  packages ['git']
  repository 'git@github.com:user/example.git'

  deploy_key File.read(File.expand_path('../../deploy_key', __FILE__))

  just_nodejs do
  end

  procfile do
    app 1
  end
end

Dependent cookbooks

application ~> 4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.0.1 failed this metric

FC016: LWRP does not declare a default action: application_just_nodejs/resources/just_nodejs.rb:1
FC055: Ensure maintainer is set in metadata: application_just_nodejs/metadata.rb:1
FC056: Ensure maintainer_email is set in metadata: application_just_nodejs/metadata.rb:1
FC064: Ensure issues_url is set in metadata: application_just_nodejs/metadata.rb:1
FC065: Ensure source_url is set in metadata: application_just_nodejs/metadata.rb:1
FC066: Ensure chef_version is set in metadata: application_just_nodejs/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: application_just_nodejs/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.1 passed this metric

Testing File Metric
            

0.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number