-
Notifications
You must be signed in to change notification settings - Fork 0
/
riak.sif
33 lines (28 loc) · 1014 Bytes
/
riak.sif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
BootStrap: debootstrap
OSVersion: buster
MirrorURL: http://ftp.us.debian.org/debian/
%environment
LANG=C.UTF-8
LC_ALL=C.UTF-8
%labels
name riak
maintainer jchassoul
version 0.1.0
%post
sed -i 's/$/ contrib/' /etc/apt/sources.list
sed -i 's/$/ non-free/' /etc/apt/sources.list
apt update
apt -y install --install-recommends git apt-transport-https\
gnupg2 wget software-properties-common curl build-essential\
gfortran pkg-config make cmake libyaml-0-2 libyaml-dev\
vim sudo logrotate
cd /usr/src && git clone https://github.com/spacebeam/riak-sif.git
cd riak-sif/include && dpkg -i riak_2.9.1-1_amd64.deb
dpkg -i riak-dbgsym_2.9.1-1_amd64.deb
%runscript
SIF_HOST=$(hostname -I)
sed -i 's/riak@127.0.0.1/riak@'"$SIF_HOST"'/g' /etc/riak/riak.conf
sed -i 's/## ring_size = 64/ring_size = 128/g' /etc/riak/riak.conf
sed -i 's/storage_backend = bitcask/storage_backend = leveldb/g' /etc/riak/riak.conf
%startscript
service riak start