File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ coreos:
2424 RestartSec=10s
2525 LimitNOFILE=40000
2626 EnvironmentFile=/etc/environment
27- Environment="ETCD_IMAGE=quay.io/coreos/etcd:v2.0.13 "
27+ Environment="ETCD_IMAGE=quay.io/coreos/etcd:v2.1.1 "
2828 Environment="ETCD_ELECTION_TIMEOUT=2000"
2929 Environment="ETCD_HEARTBEAT_INTERVAL=400"
3030 Environment="ETCD_DATA_DIR=/var/lib/etcd2"
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ FROM alpine:3.1
33# install common packages
44RUN apk add --update-cache curl tar && rm -rf /var/cache/apk/*
55
6- ENV ETCD_VERSION v0.4.9
6+ # ETCD_VERSION is actually used by the etcd daemon, and causes an issue if we
7+ # format it for our use here. So, we call this something else.
8+ ENV INSTALL_ETCD_VERSION v2.1.1
79
810# install etcd and etcdctl
9- RUN curl -sSL https://github.com/coreos/etcd/releases/download/$ETCD_VERSION /etcd-$ETCD_VERSION -linux-amd64.tar.gz \
11+ RUN curl -sSL https://github.com/coreos/etcd/releases/download/$INSTALL_ETCD_VERSION /etcd-$INSTALL_ETCD_VERSION -linux-amd64.tar.gz \
1012 | tar -vxz -C /usr/local/bin --strip=1
1113
12- EXPOSE 4001 7001
14+ EXPOSE 4001 7001 2379 2380
1315CMD ["/usr/local/bin/etcd" ]
You can’t perform that action at this time.
0 commit comments