-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
48 lines (41 loc) · 1.89 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
FROM centos:7
MAINTAINER David Lawrence <[email protected]>
# Environment configuration
ENV BUGZILLA_LIB /opt/bugzilla
ENV BUGZILLA_WWW /var/www/html/bugzilla
ENV GITHUB_BASE_GIT https://github.com/bugzilla/bugzilla
ENV GITHUB_BASE_BRANCH master
ADD https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm /usr/local/bin/cpanm
RUN chmod 755 /usr/local/bin/cpanm
COPY rpm_list /rpm_list
RUN rpm -qa --queryformat '/^%{NAME}$/ d\n' > rpm_fix.sed && \
sed -f rpm_fix.sed /rpm_list > /rpm_list.clean
RUN yum -y -q install https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm && \
yum -y -q install epel-release && \
yum -y -q install `cat /rpm_list.clean` && \
yum clean all
RUN pip install --upgrade pip rst2pdf sphinx
# Clone the code repo and install dependencies
ENV INSTALL_CPANM "cpanm -l $BUGZILLA_LIB --quiet --skip-satisfied --notest"
RUN git clone $GITHUB_BASE_GIT -b master $BUGZILLA_WWW && \
cd $BUGZILLA_WWW && \
$INSTALL_CPANM HTML::Formatter && \
$INSTALL_CPANM --installdeps --with-all-features --with-recommends --without-feature oracle . && \
cd / && \
rm -rf $BUGZILLA_WWW ~/.cpanm
RUN git clone $GITHUB_BASE_GIT -b 5.0 $BUGZILLA_WWW && \
cd $BUGZILLA_WWW && \
$INSTALL_CPANM --installdeps --with-all-features --with-recommends --without-feature oracle . && \
cd / && \
rm -rf $BUGZILLA_WWW ~/.cpanm
RUN git clone $GITHUB_BASE_GIT -b 4.4 $BUGZILLA_WWW && \
cd $BUGZILLA_WWW && \
$INSTALL_CPANM --installdeps --with-all-features --with-recommends --without-feature oracle . && \
cd / && \
rm -rf $BUGZILLA_WWW ~/.cpanm