1.2.6 • Published 1 year ago

dock-worker v1.2.6

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

Dock Worker

Automated Dokku Deployment

Prerequisites

The following tools need to be installed:

  • git
  • ssh

Both tools need to be able to access the source repos and the Dokku host, e.g. using

The ssh public key authentication works via ssh-agent. Make sure your identitiy is added via ssh-add and the ssh-agent is running.

Make sure you are able to clone from the git server that hosts the service repos. (first clone from github.com, etc.)

The authenticity of host git-host can't be established. ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Usage

  Usage:
    dock <environment> status [options]                     list app and status information
    dock <environment> deploy [--yes] [<app>...] [options]  deploy apps and configuration
    dock environments [options]                             list available environments
    dock version                                            show dock-worker version

  Options:
    -f FILE --file=FILE                                     Dockfile path [default: Dockfile.json]

App Definition

Dock Worker will look for a configuration file named Dockfile.json in the current directory. Here is an example:

{
  "environments": [
    {
      "name": "staging",
      "host": "dokku@staging.example.com"
    },
    {
      "name": "production",
      "host": "dokku@production.example.com"
    }
  ],
  "apps": [
    {
      "name": "debug-service",
      "repo": "git@github.com:artcom/debug-service.git",
      "version": "01cf5ecf0e68b19a691c215e56ba0bf363f17fc1",
      "environments": ["staging"]
    },
    {
      "name": "retrieval-service",
      "repo": "git@github.com:artcom/retrieval-service.git",
      "version": "ebf005e11bd097e0e69a05b320afa89e835a9f2e",
      "config": {
        "DISPLAY_NAME": "Retrieval Service",
        "RETRIEVE_FROM": {
          "staging": "http://staging-db.example.com",
          "production": "http://db.example.com"
        }
      },
      "dockerOptions": {
        "-p=8000:8000": ["deploy", "run"]
      },
      "stopBeforeDeployment": true
    }
  ]
}
1.2.6

1 year ago

1.2.5

2 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.0

8 years ago

0.4.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago