Skip to main content

RiotKit Tools - Generic utils package

Project description

:db:wait-for

Wait for database to be up and running, and the contents will be present.

Supports: PostgreSQL, MySQL

Examples:

rkd :db:wait-for \
    --host=postgres \
    --username=riotkit \
    --password=some \
    --port 5432 \
    --timeout 25 \
    --db-name=humhub \
    --type=postgres

rkd :db:wait-for \
    --host=mysql \
    --port=3306 \
    --type=mysql

Class name to import: rkt_utils.db.WaitForDatabaseTask [see how to import]

:utils:env-to-json

Dumps all environment variables into JSON

rkd :utils:env-to-json

# parse any JSON value one dimension deep
rkd :utils:env-to-json --parse-json

Class name to import: rkt_utils.envtojson.EnvToJsonTask [see how to import]

:docker:tag

Re-tag images to propagate version tags in docker-like format eg. 1.0.1 -> 1.0 -> 1 -> latest

Examples:

1.0.0 -> 1.0 -> 1 -> latest 1.0.0-RC1 -> 1.0.0-latest-rc

# simple propagate tags 1.2.23 -> 1.2 -> 1
rkd :docker:tag --image my-image:1.2.23 --propagate

# advanced usage
rkd :docker:tag --image my-image:1.2.23 --propagate --allowed-meta=rc,alpha,stable,dev,prod,test,beta,build,b

:docker:push

Push all re-tagged imagges by :docker:tag

rkd @ --image my-image:1.2.23 --propagate :docker:tag :docker: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

rkt_utils-3.0.4.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

rkt_utils-3.0.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file rkt_utils-3.0.4.tar.gz.

File metadata

  • Download URL: rkt_utils-3.0.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0

File hashes

Hashes for rkt_utils-3.0.4.tar.gz
Algorithm Hash digest
SHA256 c1149319a923dd3f9a67d8089ed3564a4f6d894060879163fb335c4ac49d04d2
MD5 bd0102e0b7f3b9d0ad65b26274927c11
BLAKE2b-256 72a4641893971e72d72ad01b7493aebf903d109a0058729dafd8dd3338f28181

See more details on using hashes here.

File details

Details for the file rkt_utils-3.0.4-py3-none-any.whl.

File metadata

  • Download URL: rkt_utils-3.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0

File hashes

Hashes for rkt_utils-3.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ffa260e4c1f4358b879393a558c03b00baebba006afb4f74146d599b6b48752
MD5 9522a63d2f39d2cde89971f41aebdd73
BLAKE2b-256 7d78741c3714dd8b6d4b3f8c2d5412062d9489d6f081189cb4402898f4494866

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