From: Dylan William Hardison Date: Tue, 14 Nov 2017 18:38:24 +0000 (-0500) Subject: no bug - add demo command and allow PORT to be 80 (#271) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=209265104d469028ceaba172930d46dfcc0dc4df;p=thirdparty%2Fbugzilla.git no bug - add demo command and allow PORT to be 80 (#271) --- diff --git a/Dockerfile b/Dockerfile index 4a387f1a2..7de8088be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ COPY . . RUN mv /opt/bmo/local /app && \ chown -R app:app /app && \ - perl -c /app/scripts/entrypoint.pl + perl -c /app/scripts/entrypoint.pl && \ + setcap 'cap_net_bind_service=+ep' /usr/sbin/httpd USER app diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl index 40e7cd577..04d442180 100755 --- a/scripts/entrypoint.pl +++ b/scripts/entrypoint.pl @@ -34,6 +34,11 @@ check_env() unless $cmd eq 'shell'; $func->(@ARGV); +sub cmd_demo { + cmd_load_test_data() unless -f "/app/data/params"; + cmd_httpd(); +} + sub cmd_httpd { check_data_dir(); wait_for_db();