1.0.0 • Published 2 years ago

@deploysteps/docker v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

DeploySteps - Docker

A set of tasks for Docker.

installDocker

The installDocker($) task ensures docker is installed on a debian/ubuntu based host.

  • $: An ssh connection object

Usage:

await installDocker($)

swarmCreateNetwork

The swarmCreateNetwork($, name) task ensures a swarm network is created.

  • $: An ssh connection object
  • name: The name of the network

Usage:

await swarmDeployStack($, 'example')

swarmDeployStack

The swarmDeployStack($, stackFile, name) deploys a stack onto a swarm cluster.

  • $: An ssh connection object
  • stackFile: The remote path to the stack compose file
  • name: The name of the stack

Usage:

await swarmDeployStack($, '/home/devops/hello-world.yml', 'hello-world');
1.0.0

2 years ago