https://github.com/node-ci/nci-docker-node
Docker node for nci
https://github.com/node-ci/nci-docker-node
Last synced: 6 months ago
JSON representation
Docker node for nci
- Host: GitHub
- URL: https://github.com/node-ci/nci-docker-node
- Owner: node-ci
- License: mit
- Created: 2016-09-11T07:49:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T09:37:32.000Z (about 7 years ago)
- Last Synced: 2025-07-01T11:29:36.755Z (7 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# nci docker node
Docker node for [nci](https://github.com/node-ci/nci).
This plugin allows to execute build in docker container.
[](https://travis-ci.org/node-ci/nci-docker-node)
## nci host requirements
This plugins requires only docker client which should accessible as `docker` command
for user from which nci was started.
## Remote host requirements
* running docker server
## Docker image requirements
* git client >= 1.9 (only for building git projects)
* mercurial client >= 2.8 (only for building mercurial projects)
## Installation
```sh
npm install nci-docker-node
```
## Usage
Add this plugin to the `plugins` section at server config, configure specific
node by adding it to `nodes` section e.g. (with yaml config):
```yaml
plugins:
- nci-docker-node
nodes:
- type: docker
name: localDocker
usageStrategy: specificProject
maxExecutorsCount: 2
envs:
- !!js/regexp .*
options:
host: unix:///var/run/docker.sock
defaultEnv: node:4
```
After that `localDocker` node will be used for building projects
according to `usageStrategy`. During build nci will send commands
(using docker client) to docker instance at `options.host`. "node:4" image
will be used by default, any other image (```envs``` allows any) name
can be passed from project (project can specify target ```envs```).