Skip to content

Commit

Permalink
update dhis.conf location (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennsimon authored Nov 10, 2023
1 parent 31f8218 commit 1d43932
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/dhis2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.3
version: 0.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/dhis2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ The following table lists the configurable parameters of the Dhis2 chart and the
| `pdb.minAvailable` | `Number of pods that must be available during a disruption. Can be an absolute number or a percentage` | `1` |
| `pdb.maxUnavailable` | `Number of pods that can be unavailable during a disruption. Can be an absolute number or a percentage` | `""` |
| `initResources` | | `{}` |
| `env` | | `null` |
10 changes: 7 additions & 3 deletions charts/dhis2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ spec:
initContainers:
- name: prepopulate-dhis-web-volume
image: busybox
command: ['sh', '-c', 'cp /config/dhis.conf /DHIS2_home']
command: ['sh', '-c', 'cp /config/dhis.conf /opt/dhis2']
volumeMounts:
- name: dhis-config-map
mountPath: /config/dhis.conf
subPath: dhis2-conf
- name: dhis-web-volume
mountPath: /DHIS2_home
mountPath: /opt/dhis2
resources:
{{- toYaml .Values.initResources | nindent 12 }}
volumes:
Expand All @@ -51,7 +51,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: dhis-web-volume
mountPath: /DHIS2_home
mountPath: /opt/dhis2
{{- if .Values.env }}
env:
{{- tpl (toYaml .Values.env) . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down
4 changes: 4 additions & 0 deletions charts/dhis2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,7 @@ pdb:
maxUnavailable: 1

initResources: {}

env:
# - name: DHIS2_HOME
# value: /DHIS2_home

0 comments on commit 1d43932

Please sign in to comment.