pon-task-docker
v3.1.13
Published
Pon task for docker
Downloads
54
Readme
pon-task-docker
Pon task for docker
Installation
$ npm install pon-task-docker --save
Usage
'use strict'
const pon = require('pon')
const ponTaskDocker = require('pon-task-docker')
async function tryExample () {
const run = pon({
myTask01: ponTaskDocker('my-docker-container-name', {
image: 'my-docker-image-name:latest',
})
})
run('myTask01')
}
tryExample()
Signatures
define(options) -> function
Define task
| Param | type | Description | | ---- | --- | ----------- | | options | Object | Optional settings |
mongo(name, options) -> function
| Param | type | Description | | ---- | --- | ----------- | | name | string | Container name | | options | Object | Optional settings |
mysql(name, options)
Run mysql
| Param | type | Description | | ---- | --- | ----------- | | name | string | Container name | | options | Object | Optional settings |
network()
| Param | type | Description | | ---- | --- | ----------- | | | string | |
nginx(name, options)
Run nginx
| Param | type | Description | | ---- | --- | ----------- | | name | string | Container name | | options | Object | Optional settings |
node(name, options)
Run node
| Param | type | Description | | ---- | --- | ----------- | | name | string | Container name | | options | Object | Optional settings |
redis(name, options)
Run redis
| Param | type | Description | | ---- | --- | ----------- | | name | string | Container name | | options | Object | Optional settings |
License
This software is released under the Apache-2.0 License.