snipe-it/docker
Jonathon Reinhart e59ec8b27f Run Laravel schedule in docker image using supervisord (#6606)
* docker: Rename /entrypoint.sh to /startup.sh

This script is not configured as the docker image ENTRYPOINT, thus it is
misleading to name it so.

* docker: Terminate supervisord if a process enters the FATAL state

By terminating PID 1, this will also terminate the Docker container.

* docker: Use supervisord to start up apache and cron

Note that this uses `apache2ctl -DFOREGROUND` rather than manually
sourcing /etc/apache2/envvars and running apache2, as recommended at
https://advancedweb.hu/2018/07/03/supervisor_docker/.

* docker: Add artisan schedule:run to crontab

This also switches to executing /var/www/html/artisan directly.

* docker: Run artisan schedule:run directly from supervisor

This has the following benefits over using cron:
- Cron doesn't need to be installed
- Docker-provided environment variables are preserved
- It's easy and explicit to run as the docker user
2019-03-07 12:42:00 -08:00
..
000-default.conf Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
001-default-ssl.conf Fix path to snipeit-ssl.crt (#2428) 2016-08-16 13:03:55 -07:00
develop.sh Fixes to Dockerfile, updated docker/develop.sh for new options. 2016-05-14 16:46:53 -07:00
docker.env Add DB port number to docker 2018-07-18 19:10:06 -07:00
README.md Change README to point to new documentation site 2016-07-26 13:56:40 -07:00
startup.sh Run Laravel schedule in docker image using supervisord (#6606) 2019-03-07 12:42:00 -08:00
supervisor-exit-event-listener Run Laravel schedule in docker image using supervisord (#6606) 2019-03-07 12:42:00 -08:00
supervisord.conf Run Laravel schedule in docker image using supervisord (#6606) 2019-03-07 12:42:00 -08:00