summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-09 09:07:20 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-09 09:07:20 +0100
commit2bf86b93cc1927f2cedeeb10a7895b81ea987660 (patch)
tree08b6651fe6a19c492751269b020d401bd1e929eb
parent0c26aa4e999e6146c11972a54fbb993d0ad56741 (diff)
downloaddocker-kolab-16.tar.gz
Guam comes from packaging for this branchkolab-16
-rw-r--r--03-guam/Dockerfile36
1 files changed, 2 insertions, 34 deletions
diff --git a/03-guam/Dockerfile b/03-guam/Dockerfile
index cde91c7..f0f1b84 100644
--- a/03-guam/Dockerfile
+++ b/03-guam/Dockerfile
@@ -3,47 +3,15 @@ FROM kolab/base:latest
ENV GUAM_BRANCH master
RUN yum -y install \
- erlang-eimap \
- erlang-erts \
- erlang-goldrush \
- erlang-lager \
- erlang-rebar \
- make && \
+ guam && \
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
-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 [ \
- "rel/kolab_guam/bin/kolab_guam", \
+ "/usr/bin/guam", \
"foreground" \
]