Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Utility Scripts

Sam Hecht edited this page Jul 18, 2016 · 1 revision

Utility scripts


Docker Utility Belt (dub)

  1. Template

     usage: dub template [-h] input output
     
     Generate template from env vars.
     
     positional arguments:
       input       Path to template file.
       output      Path of output file.
    
  2. ensure

     usage: dub ensure [-h] name
    
     Check if env var exists.
     
     positional arguments:
       name        Name of env var.
    
  3. wait

     usage: dub wait [-h] host port timeout
    
     wait for network service to appear.
     
     positional arguments:
       host        Host.
       port        Host.
       timeout     timeout in secs.
    
  4. path

     usage: dub path [-h] path {writable,readable,executable,exists}
    
     Check for path permissions and existence.
     
     positional arguments:
       path                  Full path.
       {writable,readable,executable,exists} One of [writable, readable, executable, exists].
    

Confluent Platform Utility Belt (cub)

  1. zk-ready

     usage: cub zk-ready [-h] connect_string timeout retries wait
    
     Check if ZK is ready.
     
     positional arguments:
       connect_string  Zookeeper connect string.
       timeout         Time in secs to wait for service to be ready.
       retries         No of retries to check if leader election is complete.
       wait            Time in secs between retries
    
  2. kafka-ready

     usage: cub kafka-ready [-h] connect_string min_brokers timeout retries wait
    
     Check if Kafka is ready.
     
     positional arguments:
       connect_string  Zookeeper connect string.
       min_brokers     Minimum number of brokers to wait for
       timeout         Time in secs to wait for service to be ready.
       retries         No of retries to check if leader election is complete.
       wait            Time in secs between retries
    

Table of Contents

Clone this wiki locally