aboutsummaryrefslogtreecommitdiff
path: root/docker/common
diff options
context:
space:
mode:
Diffstat (limited to 'docker/common')
-rwxr-xr-xdocker/common/hautoproxy/start.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/docker/common/hautoproxy/start.py b/docker/common/hautoproxy/start.py
index bbdd876b5..914a2ffac 100755
--- a/docker/common/hautoproxy/start.py
+++ b/docker/common/hautoproxy/start.py
@@ -1,12 +1,25 @@
#!/usr/bin/python
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
'''This script configures and starts a local haproxy instances, bound to
127.0.0.1, that forwards connections all of the discovered
docker/kubernetes environment variables.'''
import argparse
+from jinja2 import Environment
+from jinja2 import FileSystemLoader
import os
-from jinja2 import Environment, FileSystemLoader
import re
import urlparse