DiouxX / docker-glpi

Project to deploy GLPI with docker
219 stars 185 forks source link

implementation-non-interactive-install-on-k8s-plus-redis #81

Closed kuzakov closed 1 year ago

kuzakov commented 1 year ago

Hello colleagues,

I want to say "Thank you" for your work and this repo. My company needed for GLPI as a service in our K8s cluster, and I had to get your code and implement some changes. And now I want to contribute my work to your repo.

Main changes:

  1. Non-interactive install GLPI from scratch just over required variables, also with default vars which exist in mariadb.env
  2. Controlling for starting container with count of replicas more than 1 for avoiding concurrent access to DB.
  3. Controlling for condition of GLPI installation (already installed or not) and update or check DB if needed.
  4. Setup Redis as a cache service for user-app-cache and php-session over required variables.
  5. The "/var/www/html/glpi/files" folder in my case is shared between containers.

Main benefits:

  1. These changes provide building the docker image which we can run on the K8s with count of replicas more than 1 (already approved in my company cluster with 2 replicas)
  2. Improve performance by implementation Redis as a Cache storage.
  3. Non-interactive quick GLPI installation.

I hope that my achievements are good.

Best regards, Denis