Metadata-Version: 2.1
Name: kapten
Version: 1.3
Summary: Auto deploy of Docker Swarm services
Home-page: https://github.com/5monkeys/kapten
Author: Jonas Lundberg
Author-email: jonas@5monkeys.se
License: MIT
Keywords: docker,swarm,stack,service,auto,deploy
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: docker

<img src="https://raw.githubusercontent.com/5monkeys/kapten/master/kapten-text.png" width="66%" />

# kapten

![](https://github.com/5monkeys/kapten/workflows/test/badge.svg)
[![codecov](https://codecov.io/gh/5monkeys/kapten/branch/master/graph/badge.svg)](https://codecov.io/gh/5monkeys/kapten)
[![PyPi Version](https://img.shields.io/pypi/v/kapten.svg)](https://pypi.org/project/kapten/)
[![Python Versions](https://img.shields.io/pypi/pyversions/kapten.svg)](https://pypi.org/project/kapten/)

Updates a Docker Swarm service when a new image is available.

### Usage
```console
$ kapten --help
usage: kapten [-h] [--version] [-s SERVICES] [-p PROJECT]
              [--slack-token SLACK_TOKEN] [--slack-channel SLACK_CHANNEL]
              [--check] [--force] [-v VERBOSITY]

Checks for new images and updates services if needed.

optional arguments:
  -h, --help            show this help message and exit
  --version             Show version and exit.
  -s SERVICES, --service SERVICES
                        Service to update.
  -p PROJECT, --project PROJECT
                        Optional project name.
  --slack-token SLACK_TOKEN
                        Slack token to use for notification.
  --slack-channel SLACK_CHANNEL
                        Optional Slack channel to use for notification.
  --check               Only check if service needs to be updated.
  --force               Force service update.
  -v VERBOSITY, --verbosity VERBOSITY
                        Level of verbosity.
```

### Example
```console
$ kapten --service app --slack-token T00ABCD0A/ABCDEFGHI/xYzabCDEfGh1aBCCd12abCde
Updating service app to repo/app:latest@sha256:123456789
```


