Makefile.amIMAGE = zerolabssyseng/consul-cli
clean-local:
docker rmi $(CLEAN_OPTIONS) $(IMAGE):$(TAG) || true
build:
docker build $(BUILD_OPTIONS) --build-arg TAG=${TAG} -t $(IMAGE):$(TAG) .
pull:
docker pull $(PULL_OPTIONS) $(IMAGE):$(TAG)
push: build
docker push $(PUSH_OPTIONS) $(IMAGE):$(TAG)
makemake [options]:
clean-local
build
pull
push
ARG ALPINE_VERSION
FROM alpine:${ALPINE_VERSION:-3.10}
MAINTAINER "System Engineer (SysEng)"
ENV CONSULCLI_VERSION=0.3.1
RUN apk add --update curl tar && \
curl -sSL https://github.com/mantl/consul-cli/releases/download/v${CONSULCLI_VERSION}/consul-cli_${CONSULCLI_VERSION}_linux_amd64.tar.gz | \
tar -xzo -C /usr/local/bin --strip-components 1 && \
chmod +x /usr/local/bin/consul-cli && \
apk del curl tar && \
rm -rf /var/cache/apk/*
ENTRYPOINT ["/usr/local/bin/consul-cli"]
CMD []
version: '3.5'
volumes:
consul-cli:
services:
consul-cli:
image: zerolabssyseng/consul-cli:latest
container_name: zerolabssyseng_consul_cli
volumes:
- /etc/localtime:/etc/localtime:ro
Content type
Image
Digest
Size
5.8 MB
Last updated
almost 7 years ago
docker pull zerolabssyseng/consul-cli