Bind9 DNS catalog entry (#192)

* added bind9 catalog entry

* formatting ports in docker-compose

* exposed port selection for bind9

* bumped to v1.2.0 image, with ip resolution from rancher metadata
This commit is contained in:
digitalLumberjack 2016-07-11 19:46:08 +02:00 committed by Bill Maxwell
parent ae75151efa
commit d719e43d82
4 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,11 @@
bind9:
image: digitallumberjack/docker-bind9:v1.2.0
ports:
- ${BIND9_PORT}:53/tcp
- ${BIND9_PORT}:53/udp
environment:
BIND9_ROOTDOMAIN: ${BIND9_ROOTDOMAIN}
BIND9_KEYNAME: ${BIND9_KEYNAME}
BIND9_KEY: ${BIND9_KEY}
BIND9_FORWARDERS: ${BIND9_FORWARDERS}
RANCHER_ENV: "true"

View File

@ -0,0 +1,45 @@
.catalog:
name: "Bind9 DNS"
version: "v1.0.0-rancher1"
description: "Domain Name Server powered by Bind9"
minimum_rancher_version: v0.44.0
questions:
- variable: "BIND9_ROOTDOMAIN"
label: "The root domain to manage in bind9"
description: "This root domain will be managed by the Bind9 server. Updates and axfr requests will be made on this domain"
type: "string"
required: true
- variable: "BIND9_KEYNAME"
label: "Bind9 TSIG Keyname"
description: "The TSIG keyname"
type: "string"
required: true
- variable: "BIND9_KEY"
label: "Bind9 TSIG Key (base64 encoded)"
description: "The TSIG key. Must be base64 encoded"
type: "string"
required: true
- variable: "BIND9_PORT"
label: "Bind9 port"
description: "Bind9 port to expose on host. Will be used to bind both TCP and UDP"
type: "string"
default: 53
required: true
- variable: "BIND9_FORWARDERS"
label: "Bind9 dns forwarders"
description: "The DNS forwarders"
type: "string"
default: 8.8.8.8;8.8.4.4;
required: true
bind9:
scale: 1
health_check:
port: ${BIND9_PORT}
interval: 2000
initializing_timeout: 20000
unhealthy_threshold: 3
strategy: recreate
healthy_threshold: 2
response_timeout: 2000

View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Calque_1"
x="0px"
y="0px"
width="128"
height="128"
viewBox="0 0 127.99999 128"
enable-background="new 0 0 595.28 841.89"
xml:space="preserve"
inkscape:version="0.91 r13725"
sodipodi:docname="catalogIcon-dnsimple.svg"><metadata
id="metadata51"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs49" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1451"
inkscape:window-height="954"
id="namedview47"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="12.68591"
inkscape:cx="82.553879"
inkscape:cy="38.60826"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="text3354" /><circle
cx="64"
cy="64"
r="64"
id="circle3"
style="fill:#7bb6dc" /><circle
cx="64"
cy="62"
r="38"
id="circle5"
style="fill:#256f9a" /><path
d="m 104.293,77 -1.817,0 C 104.105,72.641 105,67.926 105,63 105,40.908 87.09,23 65,23 42.908,23 25,40.908 25,63 c 0,16.786 10.343,31.147 25,37.081 l 0,4.189 c 0,0.955 0.765,1.73 1.707,1.73 l 52.586,0 c 0.942,0 1.707,-0.775 1.707,-1.73 l 0,-25.541 C 106,77.773 105.235,77 104.293,77 Z"
id="path7"
inkscape:connector-curvature="0"
style="opacity:0.25;fill:#010202" /><path
d="m 64,22 c -22.092,0 -40,17.908 -40,40 0,22.09 17.908,40 40,40 22.09,0 40,-17.91 40,-40 C 104,39.908 86.09,22 64,22 Z m 0,76 C 44.117,98 28,81.881 28,62 28,42.117 44.117,26 64,26 c 19.881,0 36,16.117 36,36 0,19.881 -16.119,36 -36,36 z"
id="path9"
inkscape:connector-curvature="0"
style="fill:#ffffff" /><path
stroke-miterlimit="10"
d="m 32,45 c 6,-4 21.852,-4.389 33,-2 14,3 34,13 36,24"
id="path11"
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:3;stroke-miterlimit:10" /><path
stroke-miterlimit="10"
d="M 92,85 C 85.242,87.518 64.815,82.799 55,77 33,64 24,48 24,42 c 0,-3 7,-2 7,-2"
id="path13"
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:3;stroke-miterlimit:10" /><path
stroke-miterlimit="10"
d="M 97.597,46.563 C 97.758,52.065 88,76 79,85 71.272,92.727 64,98 61,99"
id="path15"
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:3;stroke-miterlimit:10" /><path
stroke-miterlimit="10"
d="m 94,39 c 0,0 3.452,-6.534 0,-9 C 87,25 62,41 49.812,54.414 42.145,62.852 33,91.001 37,97.001 c 1.24,1.859 4,-2 4,-2"
id="path17"
inkscape:connector-curvature="0"
style="fill:none;stroke:#ffffff;stroke-width:3;stroke-miterlimit:10" /><circle
cx="62.5"
cy="42.5"
r="5.5"
id="circle19"
style="fill:#ffffff" /><circle
cx="41.5"
cy="68.5"
r="5.5"
id="circle21"
style="fill:#ffffff" /><circle
cx="93.5"
cy="57.5"
r="5.5"
id="circle23"
style="fill:#ffffff" /><g
id="g25"
transform="translate(-234.125,-356.875)"><path
d="m 339.125,460.145 c 0,0.955 -0.765,1.73 -1.707,1.73 l -52.586,0 c -0.942,0 -1.707,-0.775 -1.707,-1.73 l 0,-25.541 c 0,-0.955 0.765,-1.729 1.707,-1.729 l 52.586,0 c 0.942,0 1.707,0.773 1.707,1.729 l 0,25.541 z"
id="path27"
inkscape:connector-curvature="0"
style="fill:#ffffff" /><rect
x="286.125"
y="435.875"
width="50"
height="23"
id="rect29"
style="fill:#f6a356" /><g
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text3354"><path
d="m 289.87738,448.12195 0,3.50708 1.55518,0 q 1.11877,0 1.56311,-0.38086 0.45227,-0.38086 0.45227,-1.32507 0,-0.96009 -0.46814,-1.38062 -0.46814,-0.42053 -1.54724,-0.42053 l -1.55518,0 z m 0,-4.61792 0,2.75329 1.55518,0 q 0.88867,0 1.26159,-0.31738 0.38086,-0.31738 0.38086,-1.04736 0,-0.72998 -0.38879,-1.0553 -0.38086,-0.33325 -1.25366,-0.33325 l -1.55518,0 z m -2.26135,-1.86463 3.81653,0 q 1.9757,0 2.96753,0.75379 0.99975,0.74585 0.99975,2.23755 0,1.14258 -0.58716,1.78528 -0.58716,0.6427 -1.7218,0.74585 1.35681,0.13488 2.03919,0.91247 0.6903,0.77759 0.6903,2.17407 0,1.71387 -1.03149,2.48352 -1.03149,0.76966 -3.35632,0.76966 l -3.81653,0 0,-11.86219 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16.25px;font-family:monospace;-inkscape-font-specification:'monospace Bold'"
id="path3359" /><path
d="m 297.76434,443.71826 0,-2.06299 7.05384,0 0,2.06299 -2.35657,0 0,7.72034 2.35657,0 0,2.06299 -7.05384,0 0,-2.06299 2.35657,0 0,-7.72034 -2.35657,0 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16.25px;font-family:monospace;-inkscape-font-specification:'monospace Bold'"
id="path3361" /><path
d="m 307.1192,441.65527 2.51526,0 3.30078,8.60901 0,-8.60901 2.06299,0 0,11.84632 -2.49939,0 -3.31665,-8.60901 0,8.60901 -2.06299,0 0,-11.84632 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16.25px;font-family:monospace;-inkscape-font-specification:'monospace Bold'"
id="path3363" /><path
d="m 319.37811,443.76587 0,7.62512 0.63477,0 q 1.38061,0 1.96777,-0.86487 0.58716,-0.8728 0.58716,-2.95959 0,-2.07092 -0.58716,-2.93579 -0.58716,-0.86487 -1.96777,-0.86487 l -0.63477,0 z m -2.3407,-2.1106 2.50733,0 q 2.90405,0 4.18152,1.38855 1.27746,1.38062 1.27746,4.52271 0,3.15002 -1.27746,4.54651 -1.27747,1.38855 -4.18152,1.38855 l -2.50733,0 0,-11.84632 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16.25px;font-family:monospace;-inkscape-font-specification:'monospace Bold'"
id="path3365" /><path
d="m 327.33649,453.3429 0,-2.1344 q 0.62683,0.36499 1.19812,0.53955 0.57922,0.17456 1.11084,0.17456 1.26159,0 1.92016,-0.84107 0.66651,-0.849 0.70618,-2.53112 -0.37293,0.51574 -0.95215,0.77758 -0.57922,0.25391 -1.37268,0.25391 -1.59485,0 -2.46765,-1.00769 -0.8728,-1.01563 -0.8728,-2.87232 0,-1.98364 0.97595,-3.07067 0.97595,-1.08704 2.76123,-1.08704 2.16614,0 3.14209,1.45203 0.98389,1.44409 0.98389,4.67346 0,3.07068 -1.19812,4.60998 -1.19812,1.53138 -3.59436,1.53138 -0.55542,0 -1.15052,-0.11902 -0.58716,-0.11902 -1.19018,-0.34912 z m 3.07068,-5.72083 q 0.75378,0 1.15051,-0.54749 0.40466,-0.55541 0.40466,-1.60278 0,-1.03943 -0.40466,-1.58691 -0.39673,-0.55542 -1.15051,-0.55542 -0.76172,0 -1.17432,0.55542 -0.40466,0.54748 -0.40466,1.58691 0,1.03943 0.40466,1.59485 0.4126,0.55542 1.17432,0.55542 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:16.25px;font-family:monospace;-inkscape-font-specification:'monospace Bold'"
id="path3367" /></g></g></svg>

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -0,0 +1,5 @@
name: Bind9 Domain Name Server
description: |
Bind9 DNS server, compatible with the "DNS Update (RFC2136)"
version: v1.0.0-rancher1
category: Rancher Services