From 0ed4d78d19c77a90597577b9b1e9292ff04ba1eb Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Mon, 6 Mar 2017 22:57:53 +0100 Subject: [PATCH] Add h5ai patch --- Dockerfiles/h5ai/class-setup.php.patch | 11 +++++++++++ Dockerfiles/h5ai/supervisord.conf | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfiles/h5ai/class-setup.php.patch create mode 100644 Dockerfiles/h5ai/supervisord.conf diff --git a/Dockerfiles/h5ai/class-setup.php.patch b/Dockerfiles/h5ai/class-setup.php.patch new file mode 100644 index 0000000..fc91f31 --- /dev/null +++ b/Dockerfiles/h5ai/class-setup.php.patch @@ -0,0 +1,11 @@ +--- a/class-setup.php ++++ b/class-setup.php +@@ -97,7 +97,7 @@ class Setup { + $this->set('H5AI_PATH', Util::normalize_path(dirname(dirname(dirname(dirname(__FILE__)))), false)); + + $this->set('ROOT_HREF', Util::normalize_path(dirname($this->get('H5AI_HREF')), true)); +- $this->set('ROOT_PATH', Util::normalize_path(dirname($this->get('H5AI_PATH')), false)); ++ $this->set('ROOT_PATH', "/var/www"); + + $this->set('PUBLIC_HREF', Util::normalize_path($this->get('H5AI_HREF') . '/public/', true)); + $this->set('PUBLIC_PATH', Util::normalize_path($this->get('H5AI_PATH') . '/public/', false)); \ No newline at end of file diff --git a/Dockerfiles/h5ai/supervisord.conf b/Dockerfiles/h5ai/supervisord.conf new file mode 100644 index 0000000..0fc07a4 --- /dev/null +++ b/Dockerfiles/h5ai/supervisord.conf @@ -0,0 +1,9 @@ +[supervisord] +nodaemon=true +logfile=/var/log/supervisor/supervisord.log + +[program:php5-fpm] +command=/usr/sbin/php5-fpm --nodaemonize + +[program:nginx] +command=/usr/sbin/nginx -g "daemon off;" \ No newline at end of file