Need private packages and team management tools?Check out npm Teams »

pon-task-docker-image

4.2.1 • Public • Published

pon-task-docker-image

Build Status npm Version JS Standard

Pon task to deal with docker image

Installation

$ npm install pon-task-docker-image --save

Usage

次のような image.json ファイルを作成する。

{
  "name": "hello-world",
  "version": "latest",
  "registry": "registry.hub.docker.com/library"
}

build, push 等のタスクには image.json ファイルのあるディレクトリを指定する。

Signatures

build(dir, options)

Task to build docker image

Param type Description
dir string docker build directory
options Object Optional settings
options.confDir string directory of Dockerfile, .dockerignore, image.json
options.force boolean if false, skip build if image exists

pull(dir, options)

Task to pull docker image

Param type Description
dir string docker build directory
options Object Optional settings

push(dir, options)

Task to push docker image

Param type Description
dir string docker build directory
options Object Optional settings

remove(dir, options)

Task to remove docker image

Param type Description
dir string docker build directory
options Object Optional settings

run(dir, options)

Task to run docker container

Param type Description
dir string docker directory
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

Keywords

Install

npm i pon-task-docker-image

DownloadsWeekly Downloads

726

Version

4.2.1

License

Apache-2.0

Unpacked Size

65.8 kB

Total Files

18

Last publish

Collaborators

  • avatar