Skip to content

Commit

Permalink
Merge pull request #386 from bcgov/ASA-186/documentation/rs
Browse files Browse the repository at this point in the history
Asa 186/documentation/rs
  • Loading branch information
raphaelcdsouza authored Aug 14, 2024
2 parents 86d03ef + d0aeb68 commit 9d762cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docker/suitecrm-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions helm/suitecrm/templates/s3-file-backup-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d762cf

Please sign in to comment.