Skip to content

Repository files navigation

Docker Executor

VersionDownloadsBuild StatusOpen IssuesLicense

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.

ParameterTypeDescription
configObjectConfiguration Object
config.dockerObjectDockerode configuration
config.ecosystemObjectScrewdriver Ecosystem (ui, api, store, etc.)
config.fuseboxObjectCircuit Breaker configuration
config.launchVersionStringLauncher container version to use (stable)
config.prefixStringPrefix to container names ("")
constexecutor=newDockerExecutor({docker: {socketPath: '/var/lib/docker.sock'},launchVersion: 'stable'});

Methods

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

Job annotations

AnnotationTypeDescription
screwdriver.cd/dockerEnabledBooleanOpts the build container into Privileged mode with the host's Docker socket (/var/run/docker.sock) bind-mounted in. Off by default — only enable this for jobs that specifically need to build or run Docker containers, since it grants the build full host-level access.

Testing

npm test

License

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

About

Docker Executor for Screwdriver

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

14 watching

Forks

Releases

Packages

Used by

Contributors

Languages