Dockerfile Notes for RaspberryPi SuiteCRM
Derived from the docker build for mariadb from jsurf
SuiteCRM install parts based on bitnami-docker-suitecrm
SuiteCRM "SilentInstall" Patches
Using SilentInstall with '''setup_db_create_database = 0''' should leave the database alone.
However, the SuiteCRM install code is broken in several places. The patch files that are
applied at the end of the container construction fix things enough that the setup
can initialize the config.php file without overwriting tables and data (including SuiteCRM users).
This has been reported to the SuiteCRM project in case they want to make it work right.
nginx pgp-fpm
- The servername in the nginx config must match the public host.domain name used
to access SuiteCRM or the PHP scripts/browser will complain about XSRF issues.
There is probably not really a Cross Site Request Forgery (and Cross doesn't really
start with X) but the site header seems to get crossed up at the php-fpm layer.
Editing Notes
- ALWAYS convert scripts to UNIX format with LF instead of CR/LF
- ALWAYS check for (and remove) whitespace characters after line continuation slash character
TODO
- Map persistent volumes for uploaded data so it doesn't have to be extracted from the container and wouldn't be lost if the container crashed.
- Add scripts for backing up and restoring the static files (uploads) and the MariaDB database (assuming a high likelihood of starting with this container and migrating to a "real" installation later.)