Reference hashicorp/consul instead of consul for Docker image

pull/17914/head
Nathan Coleman 2023-06-27 18:40:11 -04:00
parent 3368f14fab
commit d490377d50
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: MPL-2.0 # SPDX-License-Identifier: MPL-2.0
ARG CONSUL_IMAGE_VERSION=latest ARG CONSUL_IMAGE_VERSION=latest
FROM consul:${CONSUL_IMAGE_VERSION} FROM hashicorp/consul:${CONSUL_IMAGE_VERSION}
RUN apk update && apk add iptables RUN apk update && apk add iptables
ARG TARGETARCH ARG TARGETARCH
COPY linux_${TARGETARCH}/consul /bin/consul COPY linux_${TARGETARCH}/consul /bin/consul

View File

@ -2,6 +2,6 @@
# SPDX-License-Identifier: MPL-2.0 # SPDX-License-Identifier: MPL-2.0
ARG CONSUL_IMAGE_VERSION=latest ARG CONSUL_IMAGE_VERSION=latest
FROM consul:${CONSUL_IMAGE_VERSION} FROM hashicorp/consul:${CONSUL_IMAGE_VERSION}
RUN apk update && apk add iptables RUN apk update && apk add iptables
COPY consul /bin/consul COPY consul /bin/consul

View File

@ -308,7 +308,7 @@ metadata:
spec: spec:
containers: containers:
- name: example - name: example
image: 'consul:latest' image: 'hashicorp/consul:latest'
env: env:
- name: HOST_IP - name: HOST_IP
valueFrom: valueFrom:
@ -345,7 +345,7 @@ spec:
spec: spec:
containers: containers:
- name: example - name: example
image: 'consul:latest' image: 'hashicorp/consul:latest'
env: env:
- name: HOST_IP - name: HOST_IP
valueFrom: valueFrom: