Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am slartibaartfast on github.
  • I am trota (https://keybase.io/trota) on keybase.
  • I have a public key whose fingerprint is 4747 34D1 8E64 6D53 4BFC AB67 B910 A1D0 E8ED 0C24

To claim this, I am signing this object:

@slartibaartfast
slartibaartfast / check_db.py
Created June 15, 2017 16:05
See if a service is ready to be included
# check_db.py
import socket
import time
import argparse
""" Check if port is open, avoid docker-compose race condition """
parser = argparse.ArgumentParser(description='Check if port is open, avoid\
docker-compose race condition')
parser.add_argument('--service-name', required=True)