Last active
December 3, 2015 18:23
-
-
Save sintaxi/11368216 to your computer and use it in GitHub Desktop.
poor mans package manager
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
dirs: | |
mkdir -p pids logs data bin scripts conf/ssl src | |
haproxy: dirs | |
cd src; \ | |
curl http://www.haproxy.org/download/1.5/src/haproxy-1.5.1.tar.gz -o haproxy-1.5.1.tar.gz; \ | |
tar -zxvf haproxy-1.5.1.tar.gz; \ | |
cd haproxy-1.5.1; \ | |
make USE_OPENSSL=1 TARGET=generic; \ | |
mv haproxy ../../bin/haproxy; \ | |
cd ../..; | |
rm -rf src/haproxy-* | |
redis: dirs | |
cd src; \ | |
curl http://download.redis.io/releases/redis-2.8.9.tar.gz -o redis-2.8.9.tar.gz; \ | |
tar -zxvf redis-2.8.9.tar.gz; \ | |
cd redis-2.8.9; \ | |
make && make test \ | |
mv src/redis-cli ../../bin/redis-cli; \ | |
mv src/redis-server ../../bin/redis-server; \ | |
cd ../..; | |
rm -rf src/redis-* | |
init: redis haproxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment