Add rqlite dockerfile
This commit is contained in:
parent
bfe9eb4694
commit
1d95a205a5
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rqlite -loglevel DEBUG /rqlite
|
Loading…
Reference in New Issue