JSPM

  • Created
  • Published
  • Downloads 254
  • Score
    100M100P100Q83773F
  • License MIT

[dspp](https://github.com/131/dspp) is a **d**ocker **s**tack **p**re**p**rocessor

Package Exports

  • dspp
  • dspp/stack.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dspp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dspp is a docker stack preprocessor

Build Status Coverage Status Version License

Docker usage example

cd /your/stack/path
docker run -it --rm  -v .:/app 131hub/dspp production.yml

Motivation

Complex docker stack will be composed out of dozen/hundreds of microservices, volumes, and config. Wrapping all of them in a single compose file is tedious, and lacks flexibility.

dspp allows you to split your compose file, define YAML macros/anchor, use services as metadata references, inline configuration contents, use directories as provided.

Features

Use cases

Usage sample

dspp production.yml
dspp production.yml --ir://run=parse
dspp production.yml --ir://run=plan --commit --ir://run=apply

Change a global macro

=> interactive session
dspp production.yml
=> verify all update
dspp production.yml --ir://run=parse
=> deploy full stack
dspp production.yml --ir://run=plan --commit --ir://run=apply

Reconfigure a service

=> verify local update
dspp production.yml service_name --ir://run=parse
=> deploy service only
dspp production.yml service_name --ir://run=plan --commit --ir://run=apply

Installation instruction


# Install using npm
sudo npm -g dspp


# requires most colordiff

apt-get install most colordiff


# Install npm using 

# default is 2.15.5
# export npm_install=7.11.2

curl -L https://131.github.io/docker-dspp/install-npm.sh |  sh

Credits