npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordage

v0.0.1

Published

A tool for simplifying deployments and managing of services using fleet and CoreOS.

Downloads

7

Readme

Cordage Build Status NPM Downloads

Cordage is a simple command-line tool which makes it easy to deploy and manage your application(s) across several of your own servers using Docker, CoreOS and fleet.

Define the services for your application in Cordagefile.coffee and then deploy them using the command-line tool.

Cordage runs fleetctl commands behind the scenes and removes the need of writing systemd configuration files, as they are generated automatically when you deploy. Cordage makes it easy to add additional units for a service, making it easy to scale your application when necessary.

Cordage runs locally on your machine, meaning there is no complicated software to install on your servers. If you're already using CoreOS, then you can get started straight away.

Features

  • Deploy multiple units/instances of a service easily
  • Configure your services so there is only one unit for that service per host
  • Automatically detects updates to docker images on deployment
  • View your deployed services and units
  • Destroy a specific service and/or a specific version of a service

Install

$ npm install -g cordage

Cordage depends on Node.js, npm and fleetctl. Please make sure these dependencies are installed on your system.

Usage

Cordagefile.coffee

Cordage uses a simple file called Cordagefile.coffee which should live in the root of your project repository. This file will define what services will run across your cluster.

Here is an example Cordagefile.coffee:

module.exports = ->

  @service 'app',
    description: 'Application Server'
    image: 'nginx'
    rules:
      onePerHost: true

Please note that Cordage is still early days. The configuration format is likely to change significantly in the future and several more options will be added.

Command-line tool

Cordage is just running fleetctl commands behind the scenes, so as long as you can run fleetctl commands successfully against your cluster, Cordage should work just fine.

See all available Cordage commands
$ cordage

Deploying services

Once you have configured your services in Cordagefile.coffee, you can deploy them to your cluster. Cordage will automatically detect new versions of your service docker images, making it easy to deploy a new version of your application.

Build and deploy your services across the cluster
$ cordage deploy

Listing services and running units

To check that your deployment went smoothly, you can run the list command to view all of your services and any running units (containers) for each one.

List services and units
$ cordage list

Destroying services

If you want to shutdown and destroy all units for a particular service, then you can use the destroy command.

Destroy all units for a particular service
$ cordage destroy app
Destroy all units for a specific version of a service
$ cordage destroy app:12.04

License

Licensed under the MIT License.

View the full license here.