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
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/hunders of microservices, volumes, and config. Wrapping all of them in a single compose file is tedious, and lack flexibility.
dspp allow 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 --ir://run=compile
dspp production.yml --ir://run=deploy
Change a global macro
=> verify all update
dspp production.yml --ir://run=plan
=> deploy full stack
dspp production.yml --ir://run=apply
Reconfigure a service
=> verify local update
dspp production.yml service_name --ir://run=compile
=> deploy service only
dspp production.yml service_name --ir://run=deploy
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