Commit 1b1947bc authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

images: add memcached & memaslap to base image

parent d6edba2f
...@@ -86,6 +86,13 @@ ...@@ -86,6 +86,13 @@
{ {
"type": "shell", "type": "shell",
"inline": ["sudo mv /tmp/m5 /sbin/m5"] "inline": ["sudo mv /tmp/m5 /sbin/m5"]
},
{
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/install-base.sh"
],
"type": "shell"
} }
], ],
"variables": { "variables": {
......
#!/bin/bash -eux
set -eux
apt-get -y install memcached libevent-dev
systemctl disable memcached.service
cd /tmp
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar xf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure --enable-memaslap --disable-dtrace --prefix=/usr --enable-static \
--disable-shared \
CXXFLAGS='-fpermissive -pthread' \
CFLAGS='-fpermissive -pthread' \
LDFLAGS='-pthread' || (cat config.log ; exit 1)
make -j`nproc`
make -j`nproc` install
cd /tmp
rm -rf libmemcached-1.0.18 libmemcached-1.0.18.tar.gz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment