Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM debian:jessie

MAINTAINER <Mathieu>

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get -q install -y erlang-nox make git wget && \
apt-get clean

RUN useradd -d /opt/fipes fipes


ADD Makefile /opt/fipes/
ADD erlang.mk /opt/fipes/
ADD include /opt/fipes/include
ADD priv /opt/fipes/priv
ADD public /opt/fipes/public
ADD src /opt/fipes/src

RUN chown -R fipes:fipes /opt/fipes

USER fipes
WORKDIR /opt/fipes
RUN make

ENV HOME /opt/fipes
CMD erl -sname fipes@localhost -pa ebin -pa deps/*/ebin -boot start_sasl -s fipes

EXPOSE 3473
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ and launch the server with:

$ make dev

### Docker

The fipes service can be handle by docker.

Build the image :

docker build -t fipes .

Run the service :

docker run -t -d -p 3473:3473 fipes

Now, the service run on the port 3473, you should plug it to something wich handle SNI and Websocket, like Nginx or HAproxy.

## Bugs/Pitfalls

* Fipes is not p2p. However no data is stored on the server
Expand Down