diff --git a/docker/suitecrm-image/Dockerfile b/docker/suitecrm-image/Dockerfile index a5fa2cdd4..779f0145f 100644 --- a/docker/suitecrm-image/Dockerfile +++ b/docker/suitecrm-image/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get update && \ # Install php extensions ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN install-php-extensions intl gd mysqli pdo_mysql soap zip redis +RUN install-php-extensions intl gd mysqli pdo_mysql soap zip redis apcu # Copying modified files to container COPY ./suitecrm /opt/suitecrm @@ -34,7 +34,7 @@ RUN touch /usr/local/etc/php/php.ini && \ RUN chmod -R 775 /opt/suitecrm && \ chmod +x /suitecrm/bin/console -RUN chown -R 1001:0 /opt/suitecrm /etc/apache2 /usr/local/etc/php /var/run/apache2 /suitecrm /var/lib/apache2 /suitecrm +RUN chown -R 1001:0 /opt/suitecrm /etc/apache2 /usr/local/etc/php /var/run/apache2 /suitecrm /var/lib/apache2 # Exposed ports EXPOSE 8181 diff --git a/docker/suitecrm-image/suitecrm/build-files/usr/local/etc/php/php.ini b/docker/suitecrm-image/suitecrm/build-files/usr/local/etc/php/php.ini index e020af689..052b17778 100644 --- a/docker/suitecrm-image/suitecrm/build-files/usr/local/etc/php/php.ini +++ b/docker/suitecrm-image/suitecrm/build-files/usr/local/etc/php/php.ini @@ -348,13 +348,13 @@ disable_classes = ; the file operations performed. ; Note: if open_basedir is set, the cache is disabled ; https://php.net/realpath-cache-size -;realpath_cache_size = 4096k +realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this ; value. ; https://php.net/realpath-cache-ttl -;realpath_cache_ttl = 120 +realpath_cache_ttl = 600 ; Enables or disables the circular reference collector. ; https://php.net/zend.enable-gc @@ -963,8 +963,6 @@ default_socket_timeout = 60 ;extension=xsl ;extension=zip -;zend_extension=opcache - ;redis is commented out here becaus it is added to a component ini file extension=redis.so @@ -1799,20 +1797,21 @@ ldap.max_links = -1 [opcache] ; Determines if Zend OPCache is enabled -;opcache.enable=1 +zend_extension=opcache +opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP ;opcache.enable_cli=0 ; The OPcache shared memory storage size. -;opcache.memory_consumption=128 +opcache.memory_consumption=256 ; The amount of memory for interned strings in Mbytes. ;opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 1000000 are allowed. -;opcache.max_accelerated_files=10000 +opcache.max_accelerated_files=20000 ; The maximum percentage of "wasted" memory until a restart is scheduled. ;opcache.max_wasted_percentage=5 @@ -1825,7 +1824,7 @@ ldap.max_links = -1 ; When disabled, you must reset the OPcache manually or restart the ; webserver for changes to the filesystem to take effect. -;opcache.validate_timestamps=1 +opcache.validate_timestamps=0 ; How often (in seconds) to check file timestamps for changes to the shared ; memory storage allocation. ("1" means validate once per second, but only diff --git a/helm/suitecrm/templates/s3-file-backup-cron-job.yaml b/helm/suitecrm/templates/s3-file-backup-cron-job.yaml index b302d9077..acb7c7eaa 100644 --- a/helm/suitecrm/templates/s3-file-backup-cron-job.yaml +++ b/helm/suitecrm/templates/s3-file-backup-cron-job.yaml @@ -55,12 +55,12 @@ spec: name: suitecrm-s3-backup-credentials key: aws-endpoint-url volumeMounts: - - name: shared-uploads + - name: {{ .Values.global.volume.name }} mountPath: /aws/suitecrm/public/legacy/upload - {{- with .Values.volumes }} volumes: - {{- toYaml . | nindent 12 }} - {{- end }} + - name: {{ .Values.global.volume.name }} + persistentVolumeClaim: + claimName: {{ .Values.global.volume.claimName }} restartPolicy: Never terminationGracePeriodSeconds: 30 activeDeadlineSeconds: 1600