From 270d9753f74cf408aee67a001be2119668916e3a Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 31 Oct 2018 16:36:17 -0400 Subject: [PATCH 1/3] add queue service --- root/etc/services.d/queue/run | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 root/etc/services.d/queue/run diff --git a/root/etc/services.d/queue/run b/root/etc/services.d/queue/run new file mode 100644 index 0000000..5fbc6b3 --- /dev/null +++ b/root/etc/services.d/queue/run @@ -0,0 +1,4 @@ +#!/usr/bin/with-contenv bash + +exec \ + s6-setuidgid abc php /var/www/localhost/heimdall/artisan queue:work database --sleep=3 --tries=3 From 3f642a6dc8328f73ef5736ddf807b97fc489a8c3 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 31 Oct 2018 20:47:03 +0000 Subject: [PATCH 2/3] update readme --- README.md | 3 ++- readme-vars.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d018dff..c254f61 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Find us at: * [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team. * [IRC](https://irc.linuxserver.io) - on freenode at `#linuxserver.io`. Our primary support channel is Discord. * [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more! -* [Podcast](https://podcast.linuxserver.io) - on hiatus. Coming back soon (late 2018). +* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018). # PSA: Changes are happening @@ -136,6 +136,7 @@ This image now supports password protection through htpasswd. Run the following ## Versions +* **31.10.18:** - Add queue service. * **17.10.18:** - Symlink avatars folder. * **16.10.18:** - Updated fastcgi_params for user login support. * **07.10.18:** - Symlink `.env` rather than copy. It now resides under `/config/www` diff --git a/readme-vars.yml b/readme-vars.yml index 4706ff0..a061104 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -47,6 +47,7 @@ app_setup_block: | # changelog changelogs: + - { date: "31.10.18:", desc: "Add queue service." } - { date: "17.10.18:", desc: "Symlink avatars folder." } - { date: "16.10.18:", desc: "Updated fastcgi_params for user login support." } - { date: "07.10.18:", desc: "Symlink `.env` rather than copy. It now resides under `/config/www`" } From 536409cf5ff1c97599d558d4ff621a7be90dd875 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 31 Oct 2018 18:32:55 -0400 Subject: [PATCH 3/3] set queue driver to database --- root/etc/cont-init.d/50-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 7376387..4a63c61 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -7,6 +7,8 @@ mkdir -p \ # copy .env if not exists [[ ! -f /config/www/.env ]] && \ cp /var/www/localhost/heimdall/.env /config/www/.env +# set queue driver to database +sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env # create symlinks