Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created November 6, 2014 22:49
Show Gist options
  • Select an option

  • Save andyshinn/9e8b26bba4c51029d1fb to your computer and use it in GitHub Desktop.

Select an option

Save andyshinn/9e8b26bba4c51029d1fb to your computer and use it in GitHub Desktop.
FROM progrium/busybox
ENV ETCD_VERSION v0.4.6
ENV ETCD_DATA_DIR /etcddata
RUN opkg-install wget \
&& wget --no-check-certificate -qO etcd.tar.gz https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz \
&& gunzip -c etcd.tar.gz | tar -x -f - \
&& mv /etcd-$ETCD_VERSION-linux-amd64/etcd /etcd-$ETCD_VERSION-linux-amd64/etcdctl / \
&& rm -rf /etcd-$ETCD_VERSION-linux-amd64 \
&& rm -rf /etcd.tar.gz \
&& mkdir /etcddata
VOLUME ["/etcddata"]
CMD ["/etcd"]
$ docker run --rm  myorg/etcd
[etcd] Nov  6 13:55:29.748 CRITICAL  | raft.Server: Name cannot be blank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment