Sign inSign up

zerolabssyseng/consul-cli

By zerolabssyseng

•Updated almost 7 years ago

Consul CLI Container

Image
0

388

zerolabssyseng/consul-cli repository overview

⁠Consul CLI Container

⁠Configure Makefile.am
IMAGE = 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)
⁠Running with make
make [options]:
    clean-local
    build
    pull
    push
⁠Dockerfile
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 []
⁠Docker Compose (Skeleton)
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

Tag summary

Content type

Image

Digest

Size

5.8 MB

Last updated

almost 7 years ago

docker pull zerolabssyseng/consul-cli