CLI for manage container applications
Project description
Dock CLI
CLI tool for managing containerized applications in a Git repository.
It allows you to implement automatic version control for Docker images and Helm charts in a quick and easy way.
Installation
Install and update using pip.
$ pip install -U dock-cli
Getting Started
Assuming you have a repository with multiple Docker images and Helm charts that require automatic version control.
For example, the folder structure of your repository is as follows:
<repository_root>/
| - .git/
| - charts/
| | - myFirstChart/
| | | - Chart.yaml
| | - mySecondChart/
| | | - Chart.yaml
| - images/
| | - myFirstImage/
| | | - Dockerfile
| | - mySecondImage/
| | | - Dockerfile
| - dock.ini
And the content of dock.ini
is as follows:
$ cat dock.ini
[DEFAULT]
registry = posen
oci-registry = oci://registry-1.docker.io/posen
[images/myFirstImage]
image-file = Dockerfile
type = image
[images/mySecondImage]
image-file = Dockerfile
type = image
[charts/myFirstChart]
type = chart
[charts/mySecondChart]
type = chart
Then you can use the following command to push to the registry:
- List all images and charts
$ dock image list images/myFirstImage images/mySecondImage $ dock chart list charts/myFirstChart charts/mySecondChart
- Build all images and Package all charts
$ dock image list | xargs -r dock image build $ dock chart list | xargs -r dock chart package
- Push all images and charts
$ dock image list | xargs -r dock image push $ dock chart list | xargs -r dock chart push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dock-cli-0.2.0.tar.gz
.
File metadata
- Download URL: dock-cli-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652ac96ef34ed5f1a2bf315f27961617733169aaafb977f9d344ba09c8bfb5eb |
|
MD5 | e671d8abf097ddaf47cea87905f7945b |
|
BLAKE2b-256 | 515fe1543edf2d8e3f4e43726256ef7601057150440a985e79c035ef6d752d15 |
File details
Details for the file dock_cli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: dock_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a04404814c31ebe9cb2acecf79665f1f6c7b1c9116b0e41d72f790c989f4f74 |
|
MD5 | 6c91c3bc740e66137b571fe44070b46d |
|
BLAKE2b-256 | e577dc012859bd45d34888445d63a8889994cc888be05507d87aaa23f70fa062 |