[store-web] Run database migrations on start
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [store-web] Run database migrations on start
- Date: Tue, 29 Dec 2020 09:43:13 +0000 (UTC)
commit a068de8bf5e5ba83a951889817cf926d9bde0964
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Dec 29 10:42:57 2020 +0100
Run database migrations on start
Dockerfile | 3 +++
entrypoint | 6 ++++++
2 files changed, 9 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
index 00b7d27..8e67a42 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,3 +24,6 @@ RUN yes no | pecl install redis && \
ADD php.ini /usr/local/etc/php/conf.d/wordpress.ini
RUN sed -i 's/pm.max_children =.*/pm.max_children = 8/' /usr/local/etc/php-fpm.d/www.conf
+
+ADD entrypoint /entrypoint
+ENTRYPOINT ["/entrypoint"]
diff --git a/entrypoint b/entrypoint
new file mode 100755
index 0000000..9d5f978
--- /dev/null
+++ b/entrypoint
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+docker-entrypoint.sh apache2
+wp core update-db
+
+exec php-fpm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]