Skip to content

Commit 47e4cde

Browse files
committed
Updates to Consul 0.7.4.
1 parent c267a8c commit 47e4cde

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

0.X/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ FROM alpine:3.4
22
MAINTAINER James Phillips <[email protected]> (@slackpad)
33

44
# This is the release of Consul to pull in.
5-
ENV CONSUL_VERSION=0.7.3
5+
ENV CONSUL_VERSION=0.7.4
66

77
# This is the release of https://github.com/hashicorp/docker-base to pull in order
88
# to provide HashiCorp-built versions of basic utilities like dumb-init and gosu.
99
ENV DOCKER_BASE_VERSION=0.0.4
1010

11+
# This is the location of the releases.
12+
ENV HASHICORP_RELEASES=https://releases.hashicorp.com
13+
1114
# Create a consul user and group first so the IDs get set the same way, even as
1215
# the rest of this may change over time.
1316
RUN addgroup consul && \
@@ -18,16 +21,16 @@ RUN apk add --no-cache ca-certificates curl gnupg libcap openssl && \
1821
gpg --recv-keys 91A6E7F85D05C65630BEF18951852D87348FFC4C && \
1922
mkdir -p /tmp/build && \
2023
cd /tmp/build && \
21-
wget https://releases.hashicorp.com/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_linux_amd64.zip && \
22-
wget https://releases.hashicorp.com/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS && \
23-
wget https://releases.hashicorp.com/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS.sig && \
24+
wget ${HASHICORP_RELEASES}/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_linux_amd64.zip && \
25+
wget ${HASHICORP_RELEASES}/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS && \
26+
wget ${HASHICORP_RELEASES}/docker-base/${DOCKER_BASE_VERSION}/docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS.sig && \
2427
gpg --batch --verify docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS.sig docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS && \
2528
grep ${DOCKER_BASE_VERSION}_linux_amd64.zip docker-base_${DOCKER_BASE_VERSION}_SHA256SUMS | sha256sum -c && \
2629
unzip docker-base_${DOCKER_BASE_VERSION}_linux_amd64.zip && \
2730
cp bin/gosu bin/dumb-init /bin && \
28-
wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip && \
29-
wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_SHA256SUMS && \
30-
wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_SHA256SUMS.sig && \
31+
wget ${HASHICORP_RELEASES}/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip && \
32+
wget ${HASHICORP_RELEASES}/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_SHA256SUMS && \
33+
wget ${HASHICORP_RELEASES}/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_SHA256SUMS.sig && \
3134
gpg --batch --verify consul_${CONSUL_VERSION}_SHA256SUMS.sig consul_${CONSUL_VERSION}_SHA256SUMS && \
3235
grep consul_${CONSUL_VERSION}_linux_amd64.zip consul_${CONSUL_VERSION}_SHA256SUMS | sha256sum -c && \
3336
unzip -d /bin consul_${CONSUL_VERSION}_linux_amd64.zip && \

0 commit comments

Comments
 (0)