Skip to main content

docker image versioning

Project description

Intro

whaleman It is a simple tool to build , push and tag docker images.

using config .ini file to configure the tool. its annoying sometimes we tagging the image over and over again.

with this we can simply use config for tagging and versioning for each project/dockerfile

Installation

pip install whaleman

Usage

by default name of the config file is docker.ini

the content of the config file is

[registry]
name = index.docker.io # name of the registry URL , default is index.docker.io
login = True # if you want to login to the registry , default is False
# username for the registry 
# default is None or grab from env var with name DOCKER_USERNAME
docker_username = myusername 
# password for the registry , use quotes if you have symbol in the password.
# default is None or grab from env var with name DOCKER_PASSWORD
docker_password = "mypassword"  

[image]
name = soberdev/homepage # this is name of the image, required
tag = 0.1.8 # this is the version of the image or initial version, required

or if you want to create a config file simply run:

whaleman createconfig

the createconfig takes arguments, by default it will create a config file with name docker.ini

but you can create a config file with any name you want with the argument -n

whaleman createconfig -n myconfig.ini

DockerHost

by default whaleman will try grab the value from env variables DOCKER_HOST if the environment is empty, then default to unix://var/run/docker.sock

Run the tool

patch choices are micro, minor and major

whaleman build <patch>

build the image and patch the version, after done will auto increment the version in the config file

you can build and push the image to the registry with the positional argument push

whaleman build <patch> push

or you can use any config file and custom dockerfilename

whaleman build <patch> push -f myconfig.ini -df mydockerfile.Dockerfile

For more information

whaleman -h
whaleman build -h
whaleman createconfig -h

Logging Level

default is INFO, but you can change it with the argument -l

whaleman -l DEBUG build <patch>

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

whaleman-0.1.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whaleman-0.1.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file whaleman-0.1.5.tar.gz.

File metadata

  • Download URL: whaleman-0.1.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0b1

File hashes

Hashes for whaleman-0.1.5.tar.gz
Algorithm Hash digest
SHA256 76149ea2fa5b38b7aaf7d34e139219f999ffddacef715a6a501d3200c2f6c6b1
MD5 5b18228caddd0a630ce8fc3a0e84aa2d
BLAKE2b-256 8a03a00ada69d94ec7838a70debd508589610f83dccae670faba4938a79b3870

See more details on using hashes here.

File details

Details for the file whaleman-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: whaleman-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0b1

File hashes

Hashes for whaleman-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7229d57aef373c083cb19df9f5f7e78b8bcf8192880b443d78205d2698c0eab9
MD5 20e19def2b9fd54a40435d25346c2023
BLAKE2b-256 a5ac81837db7a9a9bd67a0675e80ed0962b137c93b7e3d1185be874b7f40e059

See more details on using hashes here.

Supported by

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