summaryrefslogtreecommitdiffstats
path: root/03-guam/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '03-guam/Dockerfile')
-rw-r--r--03-guam/Dockerfile39
1 files changed, 36 insertions, 3 deletions
diff --git a/03-guam/Dockerfile b/03-guam/Dockerfile
index cf57806..cde91c7 100644
--- a/03-guam/Dockerfile
+++ b/03-guam/Dockerfile
@@ -1,16 +1,49 @@
FROM kolab/base:latest
-RUN yum -y install guam && \
+ENV GUAM_BRANCH master
+
+RUN yum -y install \
+ erlang-eimap \
+ erlang-erts \
+ erlang-goldrush \
+ erlang-lager \
+ erlang-rebar \
+ make && \
yum clean all
+RUN git clone \
+ -b ${GUAM_BRANCH} \
+ https://git.kolab.org/diffusion/G/guam.git \
+ /root/guam.git
+
+WORKDIR /root/guam.git/
+
+RUN timeout 60s rebar get-deps
+RUN timeout 60s rebar compile
+RUN timeout 60s rebar eunit
+RUN mkdir -p deps
+
+WORKDIR /root/guam.git/rel/
+
+RUN timeout 60s rebar generate
+
+WORKDIR /root/guam.git/
+
ADD /entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
-ADD /sys.config /etc/guam/sys.config
+RUN mkdir -p \
+ /etc/guam/ && \
+ mv -v \
+ $(ls -1d /root/guam.git/rel/kolab_guam/releases/*/)/sys.config \
+ /etc/guam/sys.config && \
+ ln -s \
+ /etc/guam/sys.config \
+ $(ls -1d /root/guam.git/rel/kolab_guam/releases/*/)/.
EXPOSE 143 993
CMD [ \
- "/usr/sbin/guam", \
+ "rel/kolab_guam/bin/kolab_guam", \
"foreground" \
]