# harbor-compose-wrapper

> An npm wrapper around the harbor-compose cli

Latest version **0.17.0** (published 2018-02-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install harbor-compose-wrapper
pnpm add harbor-compose-wrapper
yarn add harbor-compose-wrapper
bun add harbor-compose-wrapper
```

Provides the command `harbor-compose`.

## 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.17.0 |
| Published | 2018-02-07 |
| First published | 2017-05-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | john.ritsema@turner.com |
| Maintainers | jritsema |
| Keywords | harbor-compose, harbor, docker-compose |

## Links

- npm: https://www.npmjs.com/package/harbor-compose-wrapper
- Repository: https://github.com/turnerlabs/harbor-compose-wrapper
- Homepage: https://github.com/turnerlabs/harbor-compose-wrapper#readme
- Issues: https://github.com/turnerlabs/harbor-compose-wrapper/issues
- npm.io page: https://npm.io/package/harbor-compose-wrapper

## Dependencies (1)

- [bin-wrapper](https://npm.io/package/bin-wrapper.md) ^3.0.2

## Recent versions

- 0.17.0 (latest) — 2018-02-07
- 0.16.0 — 2018-01-17
- 0.15.0 — 2017-11-10
- 0.14.0 — 2017-09-25
- 0.13.1 — 2017-08-31
- 0.13.0 — 2017-08-29
- 0.12.1 — 2017-07-24
- 0.12.0 — 2017-07-12
- 0.11.0 — 2017-05-19
- 0.10.1 — 2017-05-19

## README

harbor-compose-wrapper
======================

An npm wrapper around the [harbor-compose](https://github.com/turnerlabs/harbor-compose) cli.

### installation

```bash
npm install --save-dev harbor-compose-wrapper
```

### usage examples (`package.json`)

```json
"scripts": {
  "devDependencies": {
    "harbor-compose-wrapper": "0.17.0"
  },  
  "harbor-ps": "harbor-compose ps",
  "harbor-logs": "harbor-compose logs",
  "harbor-up": "harbor-compose up"
}
```

or use with more automation...

```json
"version": "1.0.0",
"scripts": {
  "devDependencies": {    
    "harbor-compose-wrapper": "0.17.0",
    "jq-cli-wrapper": "*",
    "randomstring": "^1.1.5"
  },  
  "unique-version": "echo VERSION=$(jq -r .version package.json)-$(randomstring) > .env",
  "docker-build": "npm run unique-version && docker-compose build",
  "harbor-deploy": "npm run docker-build && docker-compose push && harbor-compose up && harbor-compose ps"
}
```

```yaml
version: '2'
services:
  app:
    build: .
    image: quay.io/turner/app:${VERSION}
    ports:
      - "80:5000"
    environment:
      PORT: 5000
      HEALTHCHECK: /health
```

...allows you to change code and redeploy a unique image based on your package.json version (e.g., `quay.io/turner/app:1.0.0-XwPp9xazJ0ku5CZnlmgAx2Dld8SHkAeT`), by running:

```
npm run harbor-deploy
```

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