Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 793 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 793 Bytes

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');