demo: Add a dockerfile to run etcdctl agains the local cluster

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-04-07 13:18:49 +01:00
parent c660ca5ac4
commit f0961b8897
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# A dockerfile to build an etcd container image from the upstream one
#
# It sets the environment to talk to the local cluster
FROM quay.io/coreos/etcd:v3.1.5
ENV ETCDCTL_ENDPOINTS="http://192.168.65.200:2379,http://192.168.65.201:2379,http://192.168.65.202:2379,http://192.168.65.203:2379,http://192.168.65.204:2379"

View File

@ -1,2 +1,4 @@
#! /bin/sh
docker build -t mobylinux/etcd .
docker build -t etcd.local -f Dockerfile.local .