Last active
November 2, 2015 21:02
-
-
Save ekho/56b6329c0be404ccaf37 to your computer and use it in GitHub Desktop.
tarantool/memcache Vagrantfiles for making from source or installing with luarocks
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.56.127" | |
config.vm.provision "shell", inline: <<-SHELL | |
export DEBIAN_FRONTEND=noninteractive | |
release=`lsb_release -c -s` | |
wget -qO - http://tarantool.org/dist/public.key | sudo apt-key add - && \ | |
echo "deb http://tarantool.org/dist/master/ubuntu/ $release main" > /etc/apt/sources.list.d/tarantool.list && \ | |
echo "deb-src http://tarantool.org/dist/master/ubuntu/ $release main" >> /etc/apt/sources.list.d/tarantool.list && \ | |
sudo apt-get update && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install -y mc git \ | |
libsmall libsmall-dev libmsgpuck-dev libluajit-5.1-dev \ | |
luarocks tarantool tarantool-dev && \ | |
rm -rf memcached && \ | |
sudo -H -u vagrant bash -c 'luarocks install https://raw.githubusercontent.com/tarantool/memcached/master/memcached-scm-1.rockspec --local' | |
SHELL | |
end |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.56.127" | |
config.vm.provision "shell", inline: <<-SHELL | |
export DEBIAN_FRONTEND=noninteractive | |
release=`lsb_release -c -s` | |
wget -qO - http://tarantool.org/dist/public.key | sudo apt-key add - && \ | |
echo "deb http://tarantool.org/dist/master/ubuntu/ $release main" > /etc/apt/sources.list.d/tarantool.list && \ | |
echo "deb-src http://tarantool.org/dist/master/ubuntu/ $release main" >> /etc/apt/sources.list.d/tarantool.list && \ | |
sudo apt-get update && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install -y mc git cmake build-essential autoconf \ | |
libtool libsmall libsmall-dev libmsgpuck-dev libluajit-5.1-dev \ | |
tarantool tarantool-dev && \ | |
rm -rf memcached && \ | |
git clone --recursive https://github.com/tarantool/memcached.git && \ | |
cd memcached && \ | |
cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo && \ | |
make && \ | |
sudo make install clean | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment