Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/5monkeys/kapten
Auto deploy of Docker Swarm services
https://github.com/5monkeys/kapten
continuous-delivery docker swarm
Last synced: 28 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-16T14:11:47.000Z (about 3 years ago)
- Last Synced: 2024-11-06T19:11:49.517Z (about 2 months ago)
- Topics: continuous-delivery, docker, swarm
- Language: Python
- Size: 239 KB
- Stars: 18
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```