summaryrefslogtreecommitdiff
path: root/packaging/docker/catlfish-dev
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-02-24 19:26:21 +0100
committerLinus Nordberg <linus@nordberg.se>2015-02-24 22:31:42 +0100
commit307071e1b0d536abbec277764b427d145d4f42b7 (patch)
treea23013c9ce6c21af2752118d46d0200c230a38bd /packaging/docker/catlfish-dev
parent81a35a696d813ac5803afe602e549b56a9dfd9c4 (diff)
Add packaging and examples.
Diffstat (limited to 'packaging/docker/catlfish-dev')
-rw-r--r--packaging/docker/catlfish-dev/Dockerfile25
-rw-r--r--packaging/docker/catlfish-dev/supervisord.conf5
2 files changed, 30 insertions, 0 deletions
diff --git a/packaging/docker/catlfish-dev/Dockerfile b/packaging/docker/catlfish-dev/Dockerfile
new file mode 100644
index 0000000..0326aea
--- /dev/null
+++ b/packaging/docker/catlfish-dev/Dockerfile
@@ -0,0 +1,25 @@
+FROM erlang
+RUN apt-get update
+RUN apt-get install -qq \
+ gcc \
+ git \
+ make
+
+WORKDIR /opt
+
+RUN git clone -b v2.9.2 https://github.com/mochi/mochiweb
+RUN make -C mochiweb
+
+RUN git clone -b 2.1.0 https://github.com/basho/lager
+RUN make -C lager
+
+RUN git clone -b 1.0.6-ndn-3 https://github.com/NORDUnet/hackney.git
+RUN make -C hackney REBAR=../lager/rebar
+
+RUN git clone https://git.nordu.net/plop.git
+RUN make -C plop
+
+RUN git clone https://git.nordu.net/catlfish.git
+RUN make -C catlfish all release
+
+ADD supervisord.conf /etc/supervisor/
diff --git a/packaging/docker/catlfish-dev/supervisord.conf b/packaging/docker/catlfish-dev/supervisord.conf
new file mode 100644
index 0000000..c973bff
--- /dev/null
+++ b/packaging/docker/catlfish-dev/supervisord.conf
@@ -0,0 +1,5 @@
+[supervisord]
+nodaemon=true
+
+[program:catlfish]
+command=/opt/catlfish/rel/bin/erl -config catlfish