Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
1b1947bc
Commit
1b1947bc
authored
Aug 29, 2021
by
Antoine Kaufmann
Browse files
images: add memcached & memaslap to base image
parent
d6edba2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
images/base.json
images/base.json
+7
-0
images/scripts/install-base.sh
images/scripts/install-base.sh
+21
-0
No files found.
images/base.json
View file @
1b1947bc
...
@@ -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"
:
{
...
...
images/scripts/install-base.sh
0 → 100644
View file @
1b1947bc
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment