Skip to content

Commit

Permalink
Implement configuration for debugging purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
farhin23 committed Mar 5, 2024
1 parent a42e81e commit d804dbf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
8 changes: 8 additions & 0 deletions launchers/connector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,11 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
dependsOn(distTar, distZip)
mustRunAfter(distTar, distZip)
}

tasks.withType<JavaCompile> {

options.isDebug = true

options.compilerArgs.add("-g")

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ spec:
containerPort: {{ .Values.ports.mgmt.containerPort }}
- name: control
containerPort: 8383
- name: debug
containerPort: {{ .Values.ports.debug.port }}
protocol: TCP
{{- if .Values.debug.enabled }}
env:
- name: "JAVA_TOOL_OPTIONS"
value: '-Xdebug -agentlib:jdwp=transport=dt_socket,address=0.0.0.0:{{ .Values.ports.debug.port }},server=y,suspend=n'
{{- end }}
envFrom:
- configMapRef:
name: {{ include "company.fullname" . }}-configmap
Expand Down
6 changes: 5 additions & 1 deletion system-tests/helm/helm-charts/company/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ serviceAccount:
service:
type: ClusterIP

debug:
enabled: false

ports:
http:
Expand All @@ -46,6 +48,8 @@ ports:
containerPort: 7171
servicePort: 7171
path: /api/v2/identity
debug:
port: 5005

volumes:
hostPath: /var/lib/minikube/mvd-resources/resources
Expand All @@ -55,7 +59,7 @@ ingress:
enabled: true
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
Expand Down
8 changes: 3 additions & 5 deletions system-tests/helm/run-mvd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ echo "installing registration-service..."
helm install registration-service ./helm-charts/registration-service

echo "installing company1..."
helm install company1 --set nameOverride=company1 ./helm-charts/company
helm install company1 --set nameOverride=company1,ports.debug.port=5005 ./helm-charts/company

echo "installing company2..."
helm install company2 --set nameOverride=company2 ./helm-charts/company
helm install company2 --set nameOverride=company2,ports.debug.port=5006 ./helm-charts/company

echo "installing company3..."
helm install company3 --set nameOverride=company3 ./helm-charts/company
helm install company3 --set nameOverride=company3,ports.debug.port=5007 ./helm-charts/company

echo "installing newman..."
helm install newman ./helm-charts/newman
Expand All @@ -25,11 +25,9 @@ helm install cli-tools ./helm-charts/cli-tools

echo "installing company1 data dashboard..."
helm install company1-datadashboard --set nameOverride=company1-datadashboard,companyName=company1 ./helm-charts/company-dashboard
#helm template company1-datadashboard --set nameOverride=company1-datadashboard,companyName=company1 ./helm-charts/company-dashboard

echo "installing company2 data dashboard..."
helm install company2-datadashboard --set nameOverride=company2-datadashboard,companyName=company2 ./helm-charts/company-dashboard
#helm template company2-datadashboard --set nameOverride=company2-datadashboard,companyName=company2 ./helm-charts/company-dashboard

echo "installing company3 data dashboard..."
helm install company3-datadashboard --set nameOverride=company3-datadashboard,companyName=company3 ./helm-charts/company-dashboard

0 comments on commit d804dbf

Please sign in to comment.