Docker Executor for Screwdriver
JavaScript
Clone or download
sakka2 and catto fix(1030): Add to call method in executor-base to get JWT for build (#25
)

* add to call generating JWT API for build

* add unit test

* fix test

* fix test
Latest commit 22214f0 Jun 4, 2018
Permalink
Failed to load latest commit information.
test
.editorconfig Setup from Yeoman Oct 12, 2016
.eslintignore Setup from Yeoman Oct 12, 2016
.eslintrc.yaml Setup from Yeoman Oct 12, 2016
.gitignore Setup from Yeoman Oct 12, 2016
.npmignore Create .npmignore Oct 29, 2016
CONTRIBUTING.md
LICENSE Setup from Yeoman Oct 12, 2016
README.md fix: update README (#24) May 2, 2018
index.js
package.json Add startPeriodic() and stopPeriodic() functions May 2, 2018
screwdriver.yaml fix(hip): Upgrade to node:8 (#22) Apr 19, 2018

README.md

Docker Executor

Version Downloads Build Status Open Issues Dependency Status License

Docker Executor for Screwdriver

This is an executor for Screwdriver CD that interacts with Docker (local and remote).

Usage

npm install screwdriver-executor-docker

Initialization

The class has a variety of knobs to tweak when interacting with Docker.

Parameter Type Description
config Object Configuration Object
config.docker Object Dockerode configuration
config.ecosystem Object Screwdriver Ecosystem (ui, api, store, etc.)
config.fusebox Object Circuit Breaker configuration
config.launchVersion String Launcher container version to use (stable)
config.prefix String Prefix to container names ("")
const executor = new DockerExecutor({
    docker: {
        socketPath: '/var/lib/docker.sock'
    },
    launchVersion: 'stable'
});

Methods

For more information on start, stop, and stats please see the executor-base.

Testing

npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.