summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-02-12 18:25:45 +0100
committerDylan William Hardison <dylan@hardison.net>2018-02-18 22:04:39 +0100
commita8db810d24494137b58d207ea41e1569e943bd6f (patch)
treeadadfbe070c0daab9a2abae2e1a3ce71dea744bf /scripts
parentd010759a987a18ee44a515e5d1cc266f154e01a8 (diff)
downloadbugzilla-a8db810d24494137b58d207ea41e1569e943bd6f.tar.gz
bugzilla-a8db810d24494137b58d207ea41e1569e943bd6f.tar.xz
Add docker-compose setup for local development
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/entrypoint.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl
index a9ed4ee8c..83576d559 100755
--- a/scripts/entrypoint.pl
+++ b/scripts/entrypoint.pl
@@ -78,6 +78,10 @@ sub cmd_httpd {
check_data_dir();
wait_for_db();
check_httpd_env();
+ httpd();
+}
+
+sub httpd {
my @httpd_args = (
'-DFOREGROUND',
'-f' => '/app/httpd/httpd.conf',
@@ -91,6 +95,16 @@ sub cmd_httpd {
run( '/usr/sbin/httpd', @httpd_args );
}
+sub cmd_dev_httpd {
+ wait_for_db();
+ my $have_params = -f "/app/data/params";
+ run( 'perl', 'checksetup.pl', '--no-template', $ENV{BZ_ANSWERS_FILE} );
+ if ( not $have_params ) {
+ run( 'perl', 'scripts/generate_bmo_data.pl', '--param' => 'use_mailer_queue=0', 'vagrant@bmo-web.vm' );
+ }
+ httpd();
+}
+
sub cmd_load_test_data {
wait_for_db();