npm.io
4.2.1 • Published 6 years ago

pon-task-docker-image

Licence
Apache-2.0
Version
4.2.1
Deps
2
Size
64 kB
Vulns
0
Weekly
0

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.

Keywords