Last active
January 15, 2016 08:36
-
-
Save lorentzca/29985c80aec390df4efb to your computer and use it in GitHub Desktop.
consul on centos5.11
This file contains 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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bootstrap(単一クラスタ)用
起動スクリプト入り