From f0961b889754941cb8f45626766a660e904fc949 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Fri, 7 Apr 2017 13:18:49 +0100 Subject: [PATCH] demo: Add a dockerfile to run etcdctl agains the local cluster Signed-off-by: Rolf Neugebauer --- projects/demo/etcd/Dockerfile.local | 6 ++++++ projects/demo/etcd/build-pkg.sh | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 projects/demo/etcd/Dockerfile.local diff --git a/projects/demo/etcd/Dockerfile.local b/projects/demo/etcd/Dockerfile.local new file mode 100644 index 000000000..c614418ac --- /dev/null +++ b/projects/demo/etcd/Dockerfile.local @@ -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" diff --git a/projects/demo/etcd/build-pkg.sh b/projects/demo/etcd/build-pkg.sh index 1142c2133..a1da2c2f5 100755 --- a/projects/demo/etcd/build-pkg.sh +++ b/projects/demo/etcd/build-pkg.sh @@ -1,2 +1,4 @@ #! /bin/sh docker build -t mobylinux/etcd . + +docker build -t etcd.local -f Dockerfile.local .