0.0.1 • Published 2 years ago

docmypkg v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

docmypkg

The Node tool for building and publishing a docker container based on package information

Install with npm install docmypkg

Usage

docmypkg [options]

Options

paramdescriptiontypedefault
-p, --packageThe path to the package.json or the directory where it is locatedstring./package.json
-n, --nameContainer namestring
-r, --registryRegistry name to push containerstring
-V, --version-tagContainer version to build and publishstring
-l, --latestPush also latest tagbooleanfalse
-d, --dockerfilePath to Dockerfilestring./Dockerfile
-h, --helpShow helpboolean

Configuration

Can be configured via package.json

{
  "name": "my-app",
  "version": "1.1.1",
  "docmypkg": {
    "registry": "registry.my.com",
    "latest": true,
    "name": "app",
    "version": "3.2.1"
  }
}

If the container name or version should be different place it in docmypkg