harbor-compose-wrapper

0.17.0 • Public • Published

harbor-compose-wrapper

An npm wrapper around the harbor-compose cli.

installation

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

usage examples (package.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...

"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"
}
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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.17.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.17.00
0.16.00
0.15.00
0.14.00
0.13.10
0.13.00
0.12.11
0.12.00
0.11.01
0.10.10

Package Sidebar

Install

npm i harbor-compose-wrapper

Weekly Downloads

2

Version

0.17.0

License

Apache-2.0

Unpacked Size

3.56 kB

Total Files

5

Last publish

Collaborators

  • jritsema