# docker-publisher

> Node application publisher (via ssh or localy)

Latest version **0.6.0** (published 2018-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install docker-publisher
pnpm add docker-publisher
yarn add docker-publisher
bun add docker-publisher
```

Provides the command `publish`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2018-02-08 |
| First published | 2017-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 35.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kevin Balicot |
| Maintainers | kevinbalicot |

## Links

- npm: https://www.npmjs.com/package/docker-publisher
- npm.io page: https://npm.io/package/docker-publisher

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 0.6.0 (latest) — 2018-02-08
- 0.4.1 — 2017-11-16
- 0.4.0 — 2017-09-07
- 0.3.0 — 2017-04-21
- 0.2.1 — 2017-04-05
- 0.2.0 — 2017-04-05

## README

# PUBLISHER

A nodejs applications publisher (via ssh or localy).

The command publishes on a server with docker and run container. You can add configuration into `package.json`.

## INSTALLATION

```
& npm install --save-dev docker-publisher
```

Into `package.json`

```
"scripts": {
    "start": "node index.js",
    "publish": "publish"
},
"publish": {
    "ssh": {
      "ip": "90.700.800.900",
      "user": "root",
      "port": 22
    },
    "image": "node:latest",
    "port": "8080",
    "options": "-p 9999:8080",
    "env": {
        "NODE_ENV": "production"
    },
    "preinstall": "echo preinstall",
    "postinstall": "echo postinstall"
}
```

And

```
& npm run publish
```

## CLI USAGE

```
$ publish [options]
$ publish [command] [options]

Commands:

    list [options]           List all containers running
    remove [options] <name>  Remove container by name
    stop [options] <name>    Stop container by name
    start [options] <name>   Start container by name

Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -i, --ip [ip]        ssh ip
    -p, --port [port]    ssh port
    -u, --user [user]    ssh user
    -c, --custom [port]   try to use custom port (default: automatically)
    -n, --name [name]    docker name
    -im --image [image]  docker image
```

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