Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
The cloud is cool, so is OlegDB. I use this for getting OlegDB on my
servers and I think you'd think this is cool too.

Synergytastic.
  • Loading branch information
Xe committed Jan 31, 2015
1 parent 24910e4 commit 694c592
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.swo
*.swp
olegdb
*.o
*.dump
data
.git
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:trusty

RUN apt-get update && apt-get install -y --no-install-recommends build-essential make golang &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD . /usr/src/olegdb

RUN cd /usr/src/olegdb && make && make install &&\
mkdir /oleg

ADD olegdb.conf.sample /oleg/db.conf

EXPOSE 38080

WORKDIR /oleg
CMD /usr/local/bin/olegdb -config /oleg/db.conf

0 comments on commit 694c592

Please sign in to comment.