Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 26a7edc

Browse files
author
Lukasz Tulikowski
committed
2 parents ccd6d66 + f91de67 commit 26a7edc

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
# If you develop on Windows change this to remote_host=docker.for.win.localhost
1818
# If you develop on Linux change this to remote_host=172.17.0.1
1919
XDEBUG_CONFIG: "remote_host=docker.for.mac.localhost idekey=IDE_XDEBUG"
20+
BLACKFIRE_CLIENT_ID: ${BLACKFIRE_CLIENT_ID}
21+
BLACKFIRE_CLIENT_TOKEN: ${BLACKFIRE_CLIENT_TOKEN}
2022

2123
symfony:
2224
build:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: blackfire
5+
labels:
6+
app: {{ template "name" . }}-blackfire
7+
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
8+
release: {{ .Release.Name }}
9+
heritage: {{ .Release.Service }}
10+
spec:
11+
type: NodePort
12+
ports:
13+
- port: 8707
14+
targetPort: 8707
15+
protocol: TCP
16+
selector:
17+
app: {{ template "name" . }}-blackfire
18+
release: {{ .Release.Name }}

helm/symfony/templates/php-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ spec:
4747
secretKeyRef:
4848
name: {{ template "fullname" . }}
4949
key: database-url
50+
- name: BLACKFIRE_CLIENT_ID
51+
value: {{ .Values.php.blackfire_client_id }}
52+
- name: BLACKFIRE_CLIENT_TOKEN
53+
value: {{ .Values.php.blackfire_client_token }}
54+
5055
resources:
5156
{{ toYaml .Values.resources | indent 12 }}
5257
{{- if .Values.nodeSelector }}

helm/symfony/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ php:
1212
tag: latest
1313
pullPolicy: Always
1414
replicaCount: 1
15+
blackfire_client_id: d29ef9e1-2f41-447c-aa5f-026f7970ead6
16+
blackfire_client_token: e49229d406cc07b0dc4672aadb2d16636c694018ee4e4fd12a85aef0073a46eb
1517

1618
nginx:
1719
repository: gcr.io/personal-dev-environment/nginx

0 commit comments

Comments
 (0)