I hereby claim:
- I am gcallsen on github.
- I am gcallsen (https://keybase.io/gcallsen) on keybase.
- I have a public key ASBWlyEkUg1KiD2xQAk0i4KFe9mv8T9ypElNbmhDwUNlPQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Set the Python path | |
# | |
READLINK=$(command -v greadlink || command -v readlink || die "...Error: readlink is not in your path! Are you in the right virtualenv?") | |
DIRNAME=$(dirname $0) | |
PYTHONPATH=$($READLINK -f $DIRNAME/..) | |
echo "Starting healthcheck server as background process ..." | |
CONTAINER_IP=$(curl -s http://rancher-metadata/2015-12-19/self/container/primary_ip) |
import socket | |
import os | |
import time | |
class HealthCheckServer(object): | |
""" Simple TCP server to allow for TCP health checks. | |
""" | |
def __init__(self, ip='0.0.0.0', port=12345, handle_method=None, |
@data_dashboard_bp.route('/', defaults={'path': ''}) | |
@data_dashboard_bp.route('/<path:path>') | |
def index(path): | |
context_variables = { | |
'current_path': path | |
} | |
return render_template('index.html', **context_variables) |