Created
April 1, 2019 11:23
-
-
Save pranavcode/251fa7f76d0bc633485431d126b13214 to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - Dockerfile for Consul Server Docker Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update && \ | |
apt-get install -y \ | |
bash curl nano net-tools zip unzip \ | |
jq dnsutils iputils-ping | |
ADD https://releases.hashicorp.com/consul/1.4.4/consul_1.4.4_linux_amd64.zip /tmp/consul.zip | |
RUN cd /bin && unzip /tmp/consul.zip && chmod +x /bin/consul && rm /tmp/consul.zip | |
# Consul ports | |
EXPOSE 8300 8301 8302 8400 8500 | |
ADD consul_server.sh /opt | |
RUN mkdir -p /data | |
VOLUME /data | |
CMD ["/opt/consul_server.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment