From e4f8e12a1696598f22513d1f4a94b5aa2a4b348a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 17 Nov 2015 19:36:09 -0500 Subject: Revert "Bug 1224649 - Docker and QA scripts should just use the same checksetup_answers.txt file" This reverts commit 27dac6e9b0d2df69037cd022e77a9bf356fc7a67. --- docker/Dockerfile | 11 ++------- docker/scripts/bugzilla_config.sh | 12 ++------- docker/scripts/checksetup_answers.sh | 47 ------------------------------------ docker/scripts/install_deps.sh | 7 ------ docker/scripts/my_config.sh | 8 ------ docker/scripts/runtests.sh | 16 ++++-------- 6 files changed, 9 insertions(+), 92 deletions(-) delete mode 100644 docker/scripts/checksetup_answers.sh (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile index b5464761e..ebba20a48 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,3 @@ -# 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:centos7 MAINTAINER David Lawrence @@ -15,8 +8,9 @@ ENV BUGZILLA_ROOT $HOME/devel/htdocs/bmo ENV GITHUB_BASE_GIT https://github.com/mozilla/webtools-bmo-bugzilla ENV GITHUB_BASE_BRANCH master -# Copy over configuration files +# Copy over all files and scripts COPY files /files +COPY scripts /scripts # Distribution package installation RUN yum -y -q install https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm epel-release \ @@ -48,7 +42,6 @@ RUN cp /files/sudoers /etc/sudoers \ RUN su $BUGZILLA_USER -c "git clone $GITHUB_BASE_GIT -b $GITHUB_BASE_BRANCH $BUGZILLA_ROOT" # Bugzilla dependencies and setup -COPY scripts /scripts RUN chmod a+x /scripts/* RUN /scripts/install_deps.sh RUN /scripts/bugzilla_config.sh diff --git a/docker/scripts/bugzilla_config.sh b/docker/scripts/bugzilla_config.sh index b18493749..d1ca0db0e 100755 --- a/docker/scripts/bugzilla_config.sh +++ b/docker/scripts/bugzilla_config.sh @@ -1,12 +1,5 @@ #!/bin/bash -# 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. - cd $BUGZILLA_ROOT # Start and initialize database @@ -16,9 +9,8 @@ mysql -u root mysql -e "GRANT ALL PRIVILEGES ON *.* TO bugs@localhost IDENTIFIED mysql -u root mysql -e "CREATE DATABASE bugs CHARACTER SET = 'utf8';" # Setup default Bugzilla database -bash /scripts/checksetup_answers.sh > checksetup_answers.txt -perl checksetup.pl checksetup_answers.txt -perl checksetup.pl checksetup_answers.txt +perl checksetup.pl /files/checksetup_answers.txt +perl checksetup.pl /files/checksetup_answers.txt perl /scripts/generate_bmo_data.pl # Shutdown database diff --git a/docker/scripts/checksetup_answers.sh b/docker/scripts/checksetup_answers.sh deleted file mode 100644 index 1c518d019..000000000 --- a/docker/scripts/checksetup_answers.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# 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. - -: ${WEB_HOST:=localhost} -: ${DB_PORT_3306_TCP_ADDR:=localhost} -: ${DB_PORT_3306_TCP_PORT:=3306} -: ${DB_ENV_MYSQL_DATABASE:=bugs} -: ${DB_ENV_MYSQL_USER:=bugs} -: ${DB_ENV_MYSQL_PASSWORD:=bugs} -: ${MEMCACHED_PORT_11211_TCP_ADDR:=localhost} - -cat < checksetup_answers.txt -perl checksetup.pl checksetup_answers.txt -perl checksetup.pl checksetup_answers.txt +perl checksetup.pl $BUGZILLA_ROOT/qa/config/checksetup_answers.txt +perl checksetup.pl $BUGZILLA_ROOT/qa/config/checksetup_answers.txt echo -e "\n== Generating bmo data" -perl /scripts/generate_bmo_data.pl +perl $BUGZILLA_ROOT/docker/scripts/generate_bmo_data.pl echo -e "\n== Generating test data" cd $BUGZILLA_ROOT/qa/config -- cgit v1.2.3-24-g4f1b