Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6f70920f
Commit
6f70920f
authored
Feb 26, 2016
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1250043 - Updated docker config to use new method if installing dependencies (Makefile.PL)
parent
c664718e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
32 deletions
+23
-32
Dockerfile
Dockerfile
+4
-1
Makefile.PL
Makefile.PL
+6
-1
install_deps.sh
docker_files/install_deps.sh
+4
-11
rpm_list
docker_files/rpm_list
+6
-17
runtests.sh
docker_files/runtests.sh
+3
-2
No files found.
Dockerfile
View file @
6f70920f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
# defined by the Mozilla Public License, v. 2.0.
FROM
centos
FROM
centos
:7
MAINTAINER
David Lawrence <dkl@mozilla.com>
MAINTAINER
David Lawrence <dkl@mozilla.com>
# Environment configuration
# Environment configuration
...
@@ -21,6 +21,7 @@ ENV GITHUB_QA_GIT https://github.com/bugzilla/qa
...
@@ -21,6 +21,7 @@ ENV GITHUB_QA_GIT https://github.com/bugzilla/qa
COPY
docker_files /docker_files
COPY
docker_files /docker_files
RUN
yum
-y
-q
update
\
RUN
yum
-y
-q
update
\
&&
yum
-y
-q
install
https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm epel-release
\
&&
yum
-y
-q
install
https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm epel-release
\
&&
yum
-y
-q
groupinstall
"Development Tools"
\
&&
yum
-y
-q
install
`
cat
/docker_files/rpm_list
`
\
&&
yum
-y
-q
install
`
cat
/docker_files/rpm_list
`
\
&&
yum clean all
&&
yum clean all
...
@@ -51,6 +52,8 @@ RUN cp /docker_files/sudoers /etc/sudoers \
...
@@ -51,6 +52,8 @@ RUN cp /docker_files/sudoers /etc/sudoers \
RUN
su
$USER
-c
"git clone
$GITHUB_BASE_GIT
-b
$GITHUB_BASE_BRANCH
$BUGZILLA_ROOT
"
RUN
su
$USER
-c
"git clone
$GITHUB_BASE_GIT
-b
$GITHUB_BASE_BRANCH
$BUGZILLA_ROOT
"
# Bugzilla dependencies and setup
# Bugzilla dependencies and setup
ADD
https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm /usr/local/bin/cpanm
RUN
chmod
755 /usr/local/bin/cpanm
RUN
/bin/bash /docker_files/install_deps.sh
RUN
/bin/bash /docker_files/install_deps.sh
RUN
/bin/bash /docker_files/bugzilla_config.sh
RUN
/bin/bash /docker_files/bugzilla_config.sh
RUN
/bin/bash /docker_files/my_config.sh
RUN
/bin/bash /docker_files/my_config.sh
...
...
Makefile.PL
View file @
6f70920f
...
@@ -236,7 +236,12 @@ WriteMakefile(
...
@@ -236,7 +236,12 @@ WriteMakefile(
MIN_PERL_VERSION
=>
'5.10.1'
,
MIN_PERL_VERSION
=>
'5.10.1'
,
CONFIGURE_REQUIRES
=>
{
'ExtUtils::MakeMaker'
=>
'6.55'
},
CONFIGURE_REQUIRES
=>
{
'ExtUtils::MakeMaker'
=>
'6.55'
},
PREREQ_PM
=>
\%
requires
,
PREREQ_PM
=>
\%
requires
,
TEST_REQUIRES
=>
{
'Test::More'
=>
0
,
'Pod::Coverage'
=>
0
,
'Test::Perl::Critic'
=>
0
,
},
TEST_REQUIRES
=>
{
'Test::More'
=>
0
,
'Pod::Checker'
=>
0
,
'Pod::Coverage'
=>
0
,
'Test::Perl::Critic'
=>
0
},
META_MERGE
=>
{
META_MERGE
=>
{
"meta-spec"
=>
{
url
=>
"http://search.cpan.org/perldoc?CPAN::Meta::Spec"
,
version
=>
"2"
},
"meta-spec"
=>
{
url
=>
"http://search.cpan.org/perldoc?CPAN::Meta::Spec"
,
version
=>
"2"
},
dynamic_config
=>
1
,
dynamic_config
=>
1
,
...
...
docker_files/install_deps.sh
View file @
6f70920f
...
@@ -9,25 +9,18 @@
...
@@ -9,25 +9,18 @@
cd
$BUGZILLA_ROOT
cd
$BUGZILLA_ROOT
# Install Perl dependencies
# Install Perl dependencies
CPANM
=
"cpanm -
-quiet --notes
t --skip-satisfied"
CPANM
=
"cpanm -
l local --quie
t --skip-satisfied"
$CPANM
--installdeps
--with-
recommends
--with-
all-features
\
$CPANM
--installdeps
--with-all-features
\
--without-feature
oracle
--without-feature
sqlite
--without-feature
pg
.
--without-feature
oracle
--without-feature
sqlite
--without-feature
pg
.
# FIXME: These cause error when being installed using cpanfile
$CPANM
HTML::Formatter
$CPANM
HTML::FormatText::WithLinks
# Building PDF documentation
# Building PDF documentation
if
[
!
-x
"/usr/bin/rst2pdf"
]
;
then
if
[
!
-x
"/usr/bin/rst2pdf"
]
;
then
pip
install
rst2pdf
pip
install
rst2pdf
fi
fi
# For testing support
# For UI testing support (--notest because it tries to connect to a running server)
$CPANM
JSON::XS
$CPANM
--notest
Test::WWW::Selenium
$CPANM
Test::WWW::Selenium
$CPANM
Pod::Coverage
$CPANM
Pod::Checker
# Remove CPAN build files to minimize disk usage
# Remove CPAN build files to minimize disk usage
rm
-rf
~/.cpanm
rm
-rf
~/.cpanm
docker_files/rpm_list
View file @
6f70920f
aspell-deve
l
ImageMagick-per
l
dbus-x11
dbus-x11
dejavu-sans-mono-fonts
expat-devel
firefox
firefox
gcc
gcc-c++
gd-devel
gd-devel
git
httpd-devel
gmp-devel
graphviz
java-1.7.0-openjdk
java-1.7.0-openjdk
make
memcached
memcached
mod_perl
mod_perl
mod_perl-devel
mysql-community-devel
mysql-community-devel
mysql-community-server
mysql-community-server
openssl
openssl-devel
openssl-devel
passwd
patch
perl-App-cpanminus
perl-CPAN
perl-core
perl-core
perl-GD
postfix
postfix
python-devel
python-pip
python-pip
python-reportlab
python-reportlab
python-sphinx
python-sphinx
sudo
sudo
supervisor
supervisor
tar
tigervnc-server-minimal
tigervnc-server-minimal
unzip
vim-enhanced
wget
docker_files/runtests.sh
View file @
6f70920f
...
@@ -17,8 +17,9 @@ exec > >(tee /runtests.log) 2>&1
...
@@ -17,8 +17,9 @@ exec > >(tee /runtests.log) 2>&1
echo
"== Retrieving Bugzilla code"
echo
"== Retrieving Bugzilla code"
echo
"Checking out
$GITHUB_BASE_GIT
$GITHUB_BASE_BRANCH
..."
echo
"Checking out
$GITHUB_BASE_GIT
$GITHUB_BASE_BRANCH
..."
mv
$BUGZILLA_ROOT
"
${
BUGZILLA_ROOT
}
.back"
mv
$BUGZILLA_ROOT
${
BUGZILLA_ROOT
}
.back
git clone
$GITHUB_BASE_GIT
--single-branch
--depth
1
--branch
$GITHUB_BASE_BRANCH
$BUGZILLA_ROOT
git clone
$GITHUB_BASE_GIT
--single-branch
--depth
1
--branch
$GITHUB_BASE_BRANCH
$BUGZILLA_ROOT
rsync
-a
${
BUGZILLA_ROOT
}
.back/local/
${
BUGZILLA_ROOT
}
/local/
cd
$BUGZILLA_ROOT
cd
$BUGZILLA_ROOT
if
[
"
$GITHUB_BASE_REV
"
!=
""
]
;
then
if
[
"
$GITHUB_BASE_REV
"
!=
""
]
;
then
echo
"Switching to revision
$GITHUB_BASE_REV
..."
echo
"Switching to revision
$GITHUB_BASE_REV
..."
...
@@ -73,7 +74,7 @@ cd $BUGZILLA_ROOT
...
@@ -73,7 +74,7 @@ cd $BUGZILLA_ROOT
echo
-e
"
\n
== Generating test data"
echo
-e
"
\n
== Generating test data"
cd
$BUGZILLA_ROOT
/qa/config
cd
$BUGZILLA_ROOT
/qa/config
perl generate_test_data.pl
perl
-I
../../local/lib/perl5
generate_test_data.pl
echo
-e
"
\n
== Starting web server"
echo
-e
"
\n
== Starting web server"
sed
-e
"s?^#Perl?Perl?"
--in-place
/etc/httpd/conf.d/bugzilla.conf
sed
-e
"s?^#Perl?Perl?"
--in-place
/etc/httpd/conf.d/bugzilla.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment