Add olegdb

This commit is contained in:
Sam Dodrill 2015-02-03 21:15:41 -08:00
parent 9d57993ac8
commit 04e9a9c7e9
3 changed files with 28 additions and 0 deletions

14
olegdb/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM flitter/init
RUN apt-get update && apt-get install -y --no-install-recommends build-essential make golang &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
mkdir /oleg/src -p &&\
wget https://github.com/infoforcefeed/OlegDB/archive/v.0.1.5.tar.gz -O /oleg/src/oleg.tar.gz &&\
cd /oleg/src && tar xf oleg.tar.gz &&\
cd OlegDB-v.0.1.5 && make && make install
ADD olegdb.conf /oleg/db.conf
EXPOSE 38080
CMD /sbin/my_init

10
olegdb/olegdb.conf Normal file
View File

@ -0,0 +1,10 @@
{
"listen": "0.0.0.0:38080",
"datadir": "/oleg/data",
"usehttps": false,
"certfile": "",
"pkeyfile": "",
"lz4enabled": true,
"aolenabled": true,
"splaytreeenabled": true
}

4
olegdb/runit/olegdb/run Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /oleg
/usr/local/bin/olegdb -config /oleg/db.conf