hack/scripts-dev: keep only shared scripts in docker-dns-srv
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>release-3.3
parent
413aa48593
commit
37ae6e0c41
|
@ -33,16 +33,12 @@ ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
|
||||||
RUN rm -rf ${GOROOT} \
|
RUN rm -rf ${GOROOT} \
|
||||||
&& curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
|
&& curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
|
||||||
&& mkdir -p ${GOPATH}/src ${GOPATH}/bin \
|
&& mkdir -p ${GOPATH}/src ${GOPATH}/bin \
|
||||||
&& go version
|
&& go version \
|
||||||
|
&& go get -v -u github.com/mattn/goreman
|
||||||
|
|
||||||
RUN mkdir -p /var/bind /etc/bind
|
RUN mkdir -p /var/bind /etc/bind
|
||||||
RUN chown root:bind /var/bind /etc/bind
|
RUN chown root:bind /var/bind /etc/bind
|
||||||
ADD Procfile /Procfile
|
|
||||||
ADD run.sh /run.sh
|
|
||||||
|
|
||||||
ADD named.conf etcd.zone rdns.zone /etc/bind/
|
ADD named.conf etcd.zone rdns.zone /etc/bind/
|
||||||
RUN chown root:bind /etc/bind/named.conf /etc/bind/etcd.zone /etc/bind/rdns.zone
|
RUN chown root:bind /etc/bind/named.conf /etc/bind/etcd.zone /etc/bind/rdns.zone
|
||||||
ADD resolv.conf /etc/resolv.conf
|
ADD resolv.conf /etc/resolv.conf
|
||||||
|
|
||||||
RUN go get github.com/mattn/goreman
|
|
||||||
CMD ["/run.sh"]
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
etcd1: ./etcd --name m1 --listen-client-urls https://127.0.0.1:2379 --advertise-client-urls https://m1.etcd.local:2379 --listen-peer-urls https://127.0.0.1:2380 --initial-advertise-peer-urls=https://m1.etcd.local:2380 --initial-cluster-token tkn --discovery-srv=etcd.local --initial-cluster-state new --peer-cert-file=/certs/server-wildcard.crt --peer-key-file=/certs/server-wildcard.key.insecure --peer-trusted-ca-file=/certs/ca.crt --peer-client-cert-auth --cert-file=/certs/server-wildcard.crt --key-file=/certs/server-wildcard.key.insecure --trusted-ca-file=/certs/ca.crt --client-cert-auth
|
|
||||||
|
|
||||||
etcd2: ./etcd --name m2 --listen-client-urls https://127.0.0.1:22379 --advertise-client-urls https://m2.etcd.local:22379 --listen-peer-urls https://127.0.0.1:22380 --initial-advertise-peer-urls=https://m2.etcd.local:22380 --initial-cluster-token tkn --discovery-srv=etcd.local --initial-cluster-state new --peer-cert-file=/certs/server-wildcard.crt --peer-key-file=/certs/server-wildcard.key.insecure --peer-trusted-ca-file=/certs/ca.crt --peer-client-cert-auth --cert-file=/certs/server-wildcard.crt --key-file=/certs/server-wildcard.key.insecure --trusted-ca-file=/certs/ca.crt --client-cert-auth
|
|
||||||
|
|
||||||
etcd3: ./etcd --name m3 --listen-client-urls https://127.0.0.1:32379 --advertise-client-urls https://m3.etcd.local:32379 --listen-peer-urls https://127.0.0.1:32380 --initial-advertise-peer-urls=https://m3.etcd.local:32380 --initial-cluster-token tkn --discovery-srv=etcd.local --initial-cluster-state new --peer-cert-file=/certs/server-wildcard.crt --peer-key-file=/certs/server-wildcard.key.insecure --peer-trusted-ca-file=/certs/ca.crt --peer-client-cert-auth --cert-file=/certs/server-wildcard.crt --key-file=/certs/server-wildcard.key.insecure --trusted-ca-file=/certs/ca.crt --client-cert-auth
|
|
|
@ -1,16 +1,21 @@
|
||||||
etcd.local. IN SOA bindhostname. admin.etcd.local. (
|
$TTL 86400
|
||||||
1452607488
|
@ IN SOA etcdns.local. root.etcdns.local. (
|
||||||
10800
|
100500 ; Serial
|
||||||
3600
|
604800 ; Refresh
|
||||||
604800
|
86400 ; Retry
|
||||||
38400 )
|
2419200 ; Expire
|
||||||
etcd.local. IN NS bindhostname.
|
86400 ) ; Negative Cache TTL
|
||||||
m1.etcd.local. 300 IN A 127.0.0.1
|
IN NS ns.etcdns.local.
|
||||||
m2.etcd.local. 300 IN A 127.0.0.1
|
IN A 127.0.0.1
|
||||||
m3.etcd.local. 300 IN A 127.0.0.1
|
|
||||||
_etcd-client-ssl._tcp 300 IN SRV 0 0 2379 m1.etcd.local.
|
ns IN A 127.0.0.1
|
||||||
_etcd-client-ssl._tcp 300 IN SRV 0 0 22379 m2.etcd.local.
|
m1 IN A 127.0.0.1
|
||||||
_etcd-client-ssl._tcp 300 IN SRV 0 0 32379 m3.etcd.local.
|
m2 IN A 127.0.0.1
|
||||||
_etcd-server-ssl._tcp 300 IN SRV 0 0 2380 m1.etcd.local.
|
m3 IN A 127.0.0.1
|
||||||
_etcd-server-ssl._tcp 300 IN SRV 0 0 22380 m2.etcd.local.
|
|
||||||
_etcd-server-ssl._tcp 300 IN SRV 0 0 32380 m3.etcd.local.
|
_etcd-client-ssl._tcp IN SRV 0 0 2379 m1.etcd.local.
|
||||||
|
_etcd-server-ssl._tcp IN SRV 0 0 2380 m1.etcd.local.
|
||||||
|
_etcd-client-ssl._tcp IN SRV 0 0 22379 m2.etcd.local.
|
||||||
|
_etcd-server-ssl._tcp IN SRV 0 0 22380 m2.etcd.local.
|
||||||
|
_etcd-client-ssl._tcp IN SRV 0 0 32379 m3.etcd.local.
|
||||||
|
_etcd-server-ssl._tcp IN SRV 0 0 32380 m3.etcd.local.
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
/etc/init.d/bind9 start
|
|
||||||
|
|
||||||
# get rid of hosts so go lookup won't resolve 127.0.0.1 to localhost
|
|
||||||
cat /dev/null >/etc/hosts
|
|
||||||
|
|
||||||
goreman -f /Procfile start &
|
|
||||||
sleep 7s
|
|
||||||
|
|
||||||
ETCDCTL_API=3 ./etcdctl \
|
|
||||||
--cacert=/certs/ca.crt \
|
|
||||||
--cert=/certs/server-wildcard.crt \
|
|
||||||
--key=/certs//server-wildcard.key.insecure \
|
|
||||||
--discovery-srv etcd.local \
|
|
||||||
put foo bar
|
|
Loading…
Reference in New Issue