https://github.com/5monkeys/kapten
Auto deploy of Docker Swarm services
https://github.com/5monkeys/kapten
continuous-delivery docker swarm
Last synced: 11 days ago
JSON representation
Auto deploy of Docker Swarm services
- Host: GitHub
- URL: https://github.com/5monkeys/kapten
- Owner: 5monkeys
- Created: 2019-10-16T15:23:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-16T14:11:47.000Z (over 3 years ago)
- Last Synced: 2025-04-14T01:14:57.131Z (11 days ago)
- Topics: continuous-delivery, docker, swarm
- Language: Python
- Size: 239 KB
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kapten

[](https://codecov.io/gh/5monkeys/kapten)
[](https://pypi.org/project/kapten/)
[](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
```