summaryrefslogtreecommitdiffstats
path: root/ci/maipo
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-17 16:14:34 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-17 16:14:34 +0200
commit93a09e6844aabf0bc2e85e53ab5da6f26ec6d15b (patch)
treee692d1d33555fbeacd463eaae84e1259022b8ae5 /ci/maipo
parentdf29f115db8605d5bc439fe0755e9689f89e5950 (diff)
downloaddocker-93a09e6844aabf0bc2e85e53ab5da6f26ec6d15b.tar.gz
Install all build dependencies for packages we ship ahead of time
Diffstat (limited to 'ci/maipo')
-rw-r--r--ci/maipo20
1 files changed, 14 insertions, 6 deletions
diff --git a/ci/maipo b/ci/maipo
index dd8ddcf..ffd1d47 100644
--- a/ci/maipo
+++ b/ci/maipo
@@ -1,17 +1,25 @@
FROM centos:centos7
MAINTAINER Kolab Systems <vanmeeuwen@kolabsys.com>
-RUN yum clean metadata && \
- yum -y install \
- epel-release \
- git \
- yum-utils
-
ADD http://obs.kolabsys.com/repositories/Kolab:/Development/CentOS_7/Kolab:Development.repo \
/etc/yum.repos.d/Kolab:Development.repo
RUN rpm --import https://ssl.kolabsys.com/community.asc
ENV IMAGE maipo
+RUN yum clean metadata && \
+ yum -y install \
+ epel-release \
+ git \
+ yum-utils && \
+ yum-builddep -y \
+ $(yum -d 0 -e 0 \
+ --disablerepo=\* \
+ --enablerepo=Kolab_Development \
+ list available 2>&1 | \
+ grep -vE "^(Available Packages|\s+)" | \
+ awk '{print $1}' \
+ )
+
ADD https://cgit.kolab.org/docker/plain/ci/entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]