From 04e9a9c7e92953538e6440d7644efbf285a03b5b Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Tue, 3 Feb 2015 21:15:41 -0800 Subject: [PATCH] Add olegdb --- olegdb/Dockerfile | 14 ++++++++++++++ olegdb/olegdb.conf | 10 ++++++++++ olegdb/runit/olegdb/run | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 olegdb/Dockerfile create mode 100644 olegdb/olegdb.conf create mode 100755 olegdb/runit/olegdb/run diff --git a/olegdb/Dockerfile b/olegdb/Dockerfile new file mode 100644 index 0000000..c18c4c3 --- /dev/null +++ b/olegdb/Dockerfile @@ -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 diff --git a/olegdb/olegdb.conf b/olegdb/olegdb.conf new file mode 100644 index 0000000..44b2989 --- /dev/null +++ b/olegdb/olegdb.conf @@ -0,0 +1,10 @@ +{ + "listen": "0.0.0.0:38080", + "datadir": "/oleg/data", + "usehttps": false, + "certfile": "", + "pkeyfile": "", + "lz4enabled": true, + "aolenabled": true, + "splaytreeenabled": true +} diff --git a/olegdb/runit/olegdb/run b/olegdb/runit/olegdb/run new file mode 100755 index 0000000..ea00c09 --- /dev/null +++ b/olegdb/runit/olegdb/run @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /oleg +/usr/local/bin/olegdb -config /oleg/db.conf