Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dock-cli-0.2.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

dock_cli-0.2.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file dock-cli-0.2.1.tar.gz.

File metadata

  • Download URL: dock-cli-0.2.1.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

Hashes for dock-cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 af4e796f73927f567f410c8c5ce6a6bee302df113cf7756fe0f8c8e8e21f2cb5
MD5 3545e8c06a39d86a3e017d4468f102d0
BLAKE2b-256 15389ec59b594a2700cef1541a1dedfd95940b22f7c8376cb8734bc17252178e

See more details on using hashes here.

File details

Details for the file dock_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dock_cli-0.2.1-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

Hashes for dock_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1846c23e12002174f45ad6d7a050a0c5531ca988aa66f14f28e1bdbd56f94d2c
MD5 283ec48e447af84018bde60d9171f4b1
BLAKE2b-256 eb1b21ef8a83b33c7d06f701c0f2b01a5e927c6c7dceaad0b4b1a8f8e4879bcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page