{"_id":"@carlipa/pandora-compose","_rev":"5-8bbe6933b7f7732cb6ed2351b538b122","name":"@carlipa/pandora-compose","description":"Pandora Compose","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.1":{"name":"@carlipa/pandora-compose","version":"1.0.1","description":"Pandora Compose","main":"lib/index.js","scripts":{"start":"npm run test:watch","test":"mocha","test:watch":"npm run test -- --watch","test:coverage":"nyc --reporter=lcov npm test -- --reporter dot && nyc report","lint":"eslint src/","compile":"rimraf lib/*; babel src/ -d lib/ -s","compile:watch":"npm run compile -- -w","prepublish":"npm run compile"},"engines":{"node":">=4.3"},"repository":{"type":"git","url":"git+https://github.com/carlipa/pandora-compose.git"},"author":{"name":"Guillaume Coupelant","email":"gcoupelant@carlipa.com"},"license":"MIT","dependencies":{"@carlipa/pandora-docker":"^1.0.1","@reactivex/rxjs":"^5.0.0-beta.9","bluebird":"^3.4.1","lodash":"^4.13.1","source-map-support":"^0.4.1","tar-fs":"^1.13.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-eslint":"^6.1.0","babel-plugin-relative-import":"^1.0.3","babel-plugin-transform-class-properties":"^6.10.2","babel-plugin-transform-function-bind":"^6.8.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-node4":"^2.1.0","babel-register":"^6.9.0","eslint":"^3.0.0","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.3.2","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.3","nyc":"^6.6.1","rimraf":"^2.5.3"},"gitHead":"3ffd13fbd0092edecdd2a097d91a5b0214f4b8e1","bugs":{"url":"https://github.com/carlipa/pandora-compose/issues"},"homepage":"https://github.com/carlipa/pandora-compose#readme","_id":"@carlipa/pandora-compose@1.0.1","_shasum":"b1d9f0c452c7275cf9c6e44072cca16c9071e956","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.0","_npmUser":{"name":"carlipa","email":"olouvignes@carlipa.com"},"dist":{"shasum":"b1d9f0c452c7275cf9c6e44072cca16c9071e956","tarball":"https://registry.npmjs.org/@carlipa/pandora-compose/-/pandora-compose-1.0.1.tgz","integrity":"sha512-8zpsv+NcaTIwwqNDgVAUa08VlkehgJkPiLEE9LcGgawRb0vLoU4ktHmWJjYRLjqvi4pDU/AioyczeKhDFIygiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLsh3bFpspiuAUfAWRda3LcB0EqLrRK7QPgkT7P9vupAiAb2cAklLcl6t3D/zrocs3VxtqG3Ytt5drgR5DcGLjGLQ=="}]},"maintainers":[{"name":"carlipa","email":"olouvignes@carlipa.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pandora-compose-1.0.1.tgz_1467650316312_0.2671573585830629"}},"1.1.0":{"name":"@carlipa/pandora-compose","version":"1.1.0","description":"Pandora Compose","main":"lib/index.js","scripts":{"start":"npm run test:watch","test":"NODE_ENV=test mocha","test:watch":"npm run test -- --watch","test:coverage":"nyc --reporter=lcov npm test -- --reporter dot && nyc report","lint":"eslint src/","compile":"rimraf lib/*; babel src/ -d lib/ -s && cp -r src/dockerfiles lib/dockerfiles","compile:watch":"npm run compile -- -w","prepublish":"npm run compile"},"engines":{"node":">=4.3"},"repository":{"type":"git","url":"git+https://github.com/carlipa/pandora-compose.git"},"author":{"name":"Guillaume Coupelant","email":"gcoupelant@carlipa.com"},"license":"MIT","dependencies":{"@carlipa/pandora-docker":"^1.0.1","@reactivex/rxjs":"^5.0.0-beta.9","bluebird":"^3.4.1","lodash":"^4.13.1","source-map-support":"^0.4.1","tar-fs":"^1.13.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-eslint":"^6.1.0","babel-plugin-istanbul":"^1.0.2","babel-plugin-relative-import":"^1.0.3","babel-plugin-transform-class-properties":"^6.10.2","babel-plugin-transform-function-bind":"^6.8.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-node4":"^2.1.0","babel-register":"^6.9.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.0.0","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.3.2","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.3","nyc":"^6.6.1","rimraf":"^2.5.3"},"nyc":{"sourceMap":false,"instrument":false},"gitHead":"937090c2f230875e8d58035d64c6238f5c073ee3","bugs":{"url":"https://github.com/carlipa/pandora-compose/issues"},"homepage":"https://github.com/carlipa/pandora-compose#readme","_id":"@carlipa/pandora-compose@1.1.0","_shasum":"5d39a584b84eb1e4a494cb42530d3aef55f6caf5","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.0","_npmUser":{"name":"carlipa","email":"olouvignes@carlipa.com"},"dist":{"shasum":"5d39a584b84eb1e4a494cb42530d3aef55f6caf5","tarball":"https://registry.npmjs.org/@carlipa/pandora-compose/-/pandora-compose-1.1.0.tgz","integrity":"sha512-JXQhgX4BbvzeUuX7WCG0pb0aa9HGeAV3aAPj8AQRs7Re7BjLbq4FxO+wol4LR2gQWDYBO2PgtQJepY953tx7Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+zpofSqf/UZ+9VS0OZeIvZQvQuIPfG4WlxvSwnqRoMAiEA3Dndnxf7OKxCPcVpSYaifno3uPMqNEtdRJdas1xUdKk="}]},"maintainers":[{"name":"carlipa","email":"olouvignes@carlipa.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pandora-compose-1.1.0.tgz_1467715637210_0.2804346352349967"}},"1.2.1":{"name":"@carlipa/pandora-compose","version":"1.2.1","description":"Pandora Compose","main":"lib/index.js","scripts":{"start":"npm run test:watch","test":"NODE_ENV=test mocha","test:watch":"npm run test -- --watch","test:coverage":"nyc npm test -- --reporter dot && nyc report --reporter=text-lcov | coveralls","lint":"eslint src/","compile":"rimraf lib/*; mkdir -p lib; cp -r src/dockerfiles lib/dockerfiles && babel src/ -d lib/ -s","compile:watch":"npm run compile -- -w","prepublish":"npm run compile"},"engines":{"node":">=4.3"},"repository":{"type":"git","url":"git+https://github.com/carlipa/pandora-compose.git"},"author":{"name":"Guillaume Coupelant","email":"gcoupelant@carlipa.com"},"license":"MIT","dependencies":{"@carlipa/pandora-docker":"^1.1.0","@reactivex/rxjs":"^5.0.0-beta.9","bluebird":"^3.4.1","lodash":"^4.13.1","source-map-support":"^0.4.1","tar-fs":"^1.13.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-eslint":"^6.1.0","babel-plugin-istanbul":"^1.0.2","babel-plugin-relative-import":"^1.0.3","babel-plugin-transform-class-properties":"^6.10.2","babel-plugin-transform-function-bind":"^6.8.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-node4":"^2.1.0","babel-register":"^6.9.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","coveralls":"^2.11.9","eslint":"^2.13.1","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.3.2","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.3","nyc":"^6.6.1","rimraf":"^2.5.3"},"nyc":{"sourceMap":false,"instrument":false},"gitHead":"237a11fca89088e2f873ed7993147b0af0b0d80f","bugs":{"url":"https://github.com/carlipa/pandora-compose/issues"},"homepage":"https://github.com/carlipa/pandora-compose#readme","_id":"@carlipa/pandora-compose@1.2.1","_shasum":"e581c0181d014f398115ebee495a6d72cf749f5a","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.0","_npmUser":{"name":"carlipa","email":"olouvignes@carlipa.com"},"dist":{"shasum":"e581c0181d014f398115ebee495a6d72cf749f5a","tarball":"https://registry.npmjs.org/@carlipa/pandora-compose/-/pandora-compose-1.2.1.tgz","integrity":"sha512-U9H7bsmh2v8CNB0sLfmVQFViX7xaJMMiqgPzpcIlp6CqOIsGAD1xLiu16eOBw95eZMjJxfUI5cTKjDG8IH5low==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWs1JABa8S87Oj1mibHACovebGstQNvH0N0jdn36TKUAiBYKgiqORqKGNIoLgBifWbaAuAxxe63YuksmVbRiQGf8g=="}]},"maintainers":[{"name":"carlipa","email":"olouvignes@carlipa.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pandora-compose-1.2.1.tgz_1467819253250_0.9219514047726989"}}},"readme":"Pandora Compose\n=========\n[![Build Status](https://travis-ci.org/carlipa/pandora-compose.svg?branch=master)](https://travis-ci.org/carlipa/pandora-compose)\n[![Coverage Status](https://coveralls.io/repos/github/carlipa/pandora-compose/badge.svg?branch=master)](https://coveralls.io/github/carlipa/pandora-compose?branch=master)\n[![npm version](https://badge.fury.io/js/%40carlipa%2Fpandora-compose.svg)](https://badge.fury.io/js/%40carlipa%2Fpandora-compose)\n\nA library that provide controls to manipulate docker-compose projects\n\n## RxJS\n\nThis library is based on RxJS Observable, which provide more flexibility than raw streams. \n\n## Docker\n\nThis library use `dockerode` to communicate with the `docker` API.\n\n## Docker compose\n\nYou can either use a local installation of `docker-compose` or you can use a containerized instance that is pulled or built by Pandora.\nThis approach guaranties the version of `docker-compose`\n\n## Usage\n\nYou must create one instance of `pandora-compose` for each of your compose project, but you can use a single instance of `pandora-docker` which will be shared.\nOnce created, you can run the common `docker-compose` commands like `build`, `run`, `stop`, etc.\n\nSome methods are pure `docker-compose` calls, while other are `docker` logic.\n\nFor example, `getServiceLogs` take a service name, use `docker-compose` to get the corresponding container,\nthen use `docker` API to get their logs and eventually returns a Promise of two observables: `stdout$` and `stderr$`\nwhich emit their respective standard output logs.\n\nThe pure `docker-compose` calls, on the other and, always return an Observable, which emit object like this :\n\n```javascript\n{\n  timestamp: 1234567890,\n  stream: 'stdout',\n  source: 'run',\n  data: [\n    'line1',\n    'line2',\n    'line3'\n  ]\n}\n```\n\nThe `source` property represent the step from which those logs came from.\n`preparation` is before the actual run, it's when `docker-compose` is built.\n`run` is the actual `docker-compose` run.\nThe `data` property is an array of strings, since logs are packaged in 500ms windows.\n","maintainers":[{"name":"carlipa","email":"olouvignes@carlipa.com"}],"time":{"modified":"2022-06-12T15:42:06.713Z","created":"2016-07-04T16:38:38.488Z","1.0.1":"2016-07-04T16:38:38.488Z","1.1.0":"2016-07-05T10:47:19.572Z","1.2.1":"2016-07-06T15:34:14.374Z"},"homepage":"https://github.com/carlipa/pandora-compose#readme","repository":{"type":"git","url":"git+https://github.com/carlipa/pandora-compose.git"},"author":{"name":"Guillaume Coupelant","email":"gcoupelant@carlipa.com"},"bugs":{"url":"https://github.com/carlipa/pandora-compose/issues"},"license":"MIT","readmeFilename":"README.md"}