Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Last active January 15, 2016 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorentzca/29985c80aec390df4efb to your computer and use it in GitHub Desktop.
Save lorentzca/29985c80aec390df4efb to your computer and use it in GitHub Desktop.
consul on centos5.11
FROM centos:5.11
RUN \
yum install -y curl wget unzip && \
wget --no-check-certificate -O consul.zip https://releases.hashicorp.com/consul/0.6.0/consul_0.6.0_linux_amd64.zip && \
unzip consul.zip && \
rm -f consul.zip && \
mv consul /usr/local/sbin && \
chmod 755 /usr/local/sbin/consul && \
curl https://gist.githubusercontent.com/Lorentzca/98c7e00b3313155a53e2/raw/consul > /etc/init.d/consul && \
chmod 755 /etc/init.d/consul && \
mkdir -p /etc/consul.d/bootstrap && \
curl https://gist.githubusercontent.com/Lorentzca/f49d8e73fc00a9289566/raw/config.json > /etc/consul.d/bootstrap/config.json && \
chkconfig --add consul
@lorentzca
Copy link
Author

bootstrap(単一クラスタ)用
起動スクリプト入り

service consul help
Usage: /etc/init.d/consul {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment