Skip to content

Commit

Permalink
fix rabbitmq - database - on fpm ans worker startup
Browse files Browse the repository at this point in the history
  • Loading branch information
moctardiouf committed Apr 30, 2021
1 parent 3f72882 commit a74a6e9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 0 additions & 2 deletions infra/helm/all/templates/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ spec:
image: {{ .Values.image.registry }}/phraseanet-db:{{ .Values.image.tag.phraseanet }}
imagePullPolicy: Always
terminationMessagePolicy: FallbackToLogsOnError
resources:
{{ toYaml .Values.mysql.resources | indent 12 }}
env:
- name: MYSQL_ROOT_PASSWORD
value: {{ .Values.mysql.root_password }}
Expand Down
2 changes: 2 additions & 0 deletions infra/helm/all/templates/phraseanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ spec:
value: "/var/alchemy/Phraseanet/datas/download"
- name: PHRASEANET_LAZARET_DIR
value: "/var/alchemy/Phraseanet/datas/lazaret"
- name: "PHRASEANET_WORKER_TMP"
value: "/var/alchemy/Phraseanet/tmp/worker"
- name: PHRASEANET_CAPTION_DIR
value: "/var/alchemy/Phraseanet/tmp/caption"
- name: PHRASEANET_FFMPEG_TIMEOUT
Expand Down
3 changes: 1 addition & 2 deletions infra/helm/all/templates/rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ spec:
- name: rabbitmq
image: rabbitmq:3-management
terminationMessagePolicy: FallbackToLogsOnError
resources:
{{ toYaml .Values.rabbitmq.resources | indent 12 }}
env:
- name: RABBITMQ_DEFAULT_USER
value: {{ .Values.rabbitmq.default_user }}
- name: RABBITMQ_DEFAULT_PASS
value: {{ .Values.rabbitmq.default_pass }}

12 changes: 7 additions & 5 deletions infra/helm/all/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
elasticsearch : 4.1.3

mysql:
root_password:
root_password: phraseanet
max_allowed_packet: 16M
pvc_name: phraseanet-database
resources:
Expand Down Expand Up @@ -46,7 +46,7 @@ elasticsearch:

rabbitmq:
default_user: rabbit
default_pass:
default_pass: rabbit
resources:
requests:
cpu: "50m"
Expand All @@ -66,14 +66,16 @@ php:

ingress:
enabled: false
hostname: phraseanet
tls: false

app:
hostname: localhost
phraseanet_admin_account_email: support@alchemy.fr
phraseaenet_admin_account_password: phraseanet
phraseanet_admin_account_email: admin@alchemy.fr
phraseanet_admin_account_password: phraseanet
phraseanet_db_host: db
phraseanet_db_user: root
phraseanet_db_password: root
phraseanet_db_password: phraseanet
install_db_template: DublinCore
install_appbox: ab_master
install_databox: db_databox1
Expand Down
12 changes: 7 additions & 5 deletions infra/helm/myvalues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
elasticsearch : 4.1.3

mysql:
root_password:
root_password: phraseanet
max_allowed_packet: 16M
pvc_name: phraseanet-database
resources:
Expand All @@ -30,7 +30,7 @@ elasticsearch:

rabbitmq:
default_user: rabbit
default_pass:
default_pass: rabbit
resources:
requests:
cpu: "50m"
Expand All @@ -50,14 +50,16 @@ php:

ingress:
enabled: false
hostname: phraseanet
tls: false

app:
hostname: localhost
phraseanet_admin_account_email: support@alchemy.fr
phraseaenet_admin_account_password: phraseanet
phraseanet_admin_account_email: admin@alchemy.fr
phraseanet_admin_account_password: phraseanet
phraseanet_db_host: db
phraseanet_db_user: root
phraseanet_db_password: root
phraseanet_db_password: phraseanet
install_db_template: DublinCore
install_appbox: ab_master
install_databox: db_databox1
Expand Down

0 comments on commit a74a6e9

Please sign in to comment.