Add rqlite dockerfile

This commit is contained in:
Sam Dodrill 2015-02-22 19:01:44 -08:00
parent bfe9eb4694
commit 1d95a205a5
2 changed files with 16 additions and 0 deletions

13
rqlite/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM flitter/init
ENV GOPATH /go
ENV PATH $PATH:/go/bin
RUN apt-get update && apt-get -y install build-essential golang sqlite3 libsqlite3-dev git mercurial --no-install-recommends &&\
mkdir /rqlite /go && go get github.com/otoolep/rqlite
EXPOSE 4001
ADD rqlite /etc/service/rqlite/run
CMD /sbin/my_init

3
rqlite/rqlite Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
rqlite -loglevel DEBUG /rqlite