Sign inSign up

mcchae/consul

By mcchae

•Updated almost 8 years ago

Image
0

273

mcchae/consul repository overview

⁠consul⁠

consul 오픈스로의 docker conainerize 내용입니다.

consul은 아파치의 Zookeeper⁠ 와 같은 분산 시스템 코디네이션 서비스 시스템으로서 hashicorp⁠ 라는 회사에서 만든 코디네이션 서비스 시스템입니다.

⁠Dockfile

FROM debian:jessie

ENV CONSUL_VERSION 0.7.5
ENV UI_VERSION 0.7.5

RUN apt-get update && \
    apt-get install ca-certificates curl unzip -y && \
    apt-get autoclean && \
    apt-get --purge -y autoremove && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN bash -c 'mkdir -p /consul/{data,conf.d,ui}'

RUN curl -Lo /consul/${CONSUL_VERSION}_linux_amd64.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_386.zip \
    && unzip /consul/${CONSUL_VERSION}_linux_amd64.zip -d /consul  && \
    rm -rf /consul/${CONSUL_VERSION}_linux_amd64.zip && \
    chmod +x /consul/consul && \
    curl -Lo /tmp/${UI_VERSION}_web_ui.zip https://releases.hashicorp.com/consul/${UI_VERSION}/consul_${UI_VERSION}_web_ui.zip && \
    unzip /tmp/${UI_VERSION}_web_ui.zip -d /tmp/ui && \
    cp -r /tmp/ui/* /consul/ui && \
    rm -rf /tmp/ui
    
EXPOSE 8300 8400 8500 8600

ENTRYPOINT ["/consul/consul"]

Tag summary

Content type

Image

Digest

Size

68 MB

Last updated

almost 8 years ago

docker pull mcchae/consul