Skip to content

Commit 0f8cffb

Browse files
committed
Add etcdctl
1 parent 0764486 commit 0f8cffb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Dockerfile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
FROM ubuntu:trusty
44
MAINTAINER ulexus@gmail.com
55

6+
ENV ETCDCTL_VERSION v2.0.9
7+
ENV ETCDCTL_ARCH linux-amd64
8+
69
RUN apt-get -y update
710
RUN apt-get -y upgrade
811

@@ -12,6 +15,10 @@ RUN apt-get -y install qemu-kvm
1215
# Install Ceph common utilities/libraries
1316
RUN apt-get -y install ceph-common
1417

18+
# Install etcdctl
19+
RUN wget -q -O- "https://github.com/coreos/etcd/releases/download/${ETCDCTL_VERSION}/etcd-${ETCDCTL_VERSION}-${ETCDCTL_ARCH}.tar.gz" |tar xfz - -C/tmp/ etcd-${ETCDCTL_VERSION}-${ETCDCTL_ARCH}/etcdctl
20+
RUN mv /tmp/etcd-${ETCDCTL_VERSION}-${ETCDCTL_ARCH}/etcdctl /usr/local/bin/etcdctl
21+
1522
# Add entrypoint script
1623
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
1724
RUN chmod +x /usr/local/bin/entrypoint.sh

0 commit comments

Comments
 (0)