Use local olegdb

This commit is contained in:
Christine Dodrill 2015-02-06 17:04:20 -08:00
parent 22fbdd1a24
commit 17e679f742
5 changed files with 34 additions and 2 deletions

View File

@ -1 +1,5 @@
FROM xena/lapis:1.7.7.1 FROM xena/lapis:1.7.7.1
ADD oleg /seed/oleg
RUN cd /seed/oleg && ./seed.sh
ADD oleg/runit/ /etc/service

View File

@ -4,5 +4,5 @@ config "docker", ->
port os.getenv "PORT" port os.getenv "PORT"
oleg -> oleg ->
host os.getenv "OLEG_PORT_38080_TCP_ADDR" host "127.0.0.1"
port os.getenv "OLEG_PORT_38080_TCP_PORT" port 38080

10
oleg/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
oleg/runit/olegdb/run Executable file
View File

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

14
oleg/seed.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
set -x
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
mv /seed/oleg/olegdb.conf /oleg/db.conf