# @coppel/docker-pipeline

> Pipeline de eventos ejecutados dentro de docker engine.

Latest version **1.0.2** (published 2019-05-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install @coppel/docker-pipeline
pnpm add @coppel/docker-pipeline
yarn add @coppel/docker-pipeline
bun add @coppel/docker-pipeline
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-05-15 |
| First published | 2019-05-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Enoi Barrera Guzman |
| Maintainers | elzafirox |
| Keywords | docker, pipeline, CI |

## Links

- npm: https://www.npmjs.com/package/@coppel/docker-pipeline
- npm.io page: https://npm.io/package/@coppel/docker-pipeline

## Dependencies (2)

- [dockerode](https://npm.io/package/dockerode.md) ^2.5.8
- [docker-events](https://npm.io/package/docker-events.md) 0.0.2

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-05-15
- 1.0.1 — 2019-05-15
- 1.0.0 — 2019-05-13

## README

# Docker Pipeline

Proyecto de un simple pipeline que se basa en eventos, para notificar las diferentes acciones que son toamdas, utiliza el engine de Docker para ejecutar los diferentes paso que que se asignan.

Se agrega soporte para agregar volumenes, y variables de ambiente.


```typescript
import {
  DockerPipeline,
  Pipele,
  Steps,
  TypeDockerPipeline,
} from '@coppel/docker-pipeline';
const demo: TypeDockerPipeline = new DockerPipeline();

demo.on('init', (data: any) => {
  console.log(data);
});

demo.on('init_step', (data: Steps) => {
  console.log(data);
});

demo.on('finish_step', (data: Steps) => {
  console.log(data);
});

demo.on('task_status', (data: Steps) => {
  // console.log(data);
});

demo.on('task_message', (data: Steps) => {
  console.log(data);
});

demo.on('finish', () => {
  console.log('Se termino');
});

const pip: Pipele = {
  kind: 'pipeline',
  steps: [
    {
      commands: ['node --version', 'echo test $VAR', 'telnet'],
      Env: ['VAR=ttslkfjsdalkfj'],
      image: 'node:latest',
      name: 'Version',
    },
    {
      commands: ['npm --version', 'touch /app/demo.txt', 'ls /app'],
      image: 'node:latest',
      name: 'NPM',
      volumes: ['otro:/app'],
    },
  ],
  volumes: ['otro', 'mas', 'cosa'],
};

// Ejecutar demo
demo.start(pip);
```

> NOTA: La documentacion aun esta en proceso.

---
_Source: https://npm.io/package/@coppel/docker-pipeline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
