Skip to content

Commit

Permalink
Update notes and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddehs committed Jul 11, 2021
1 parent df31ca1 commit f5c21af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM nextgenhealthcare/connect:3.11
WORKDIR /opt/connect

USER root

EXPOSE 8080 8443


WORKDIR /opt/connect/extensions

RUN apt install unzip
RUN wget -q http://downloads.mirthcorp.com/fhir/3.11.0/fhir-3.11.0.b1424.zip
RUN unzip -qn fhir-3.11.0.b1424.zip

WORKDIR /opt/connect

COPY entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
Mirth / NextGen Connect Helm Chart with pgsql

## Todo
- [x] [critical] Out-of-the-box Postgres DB support
- [ ] Ingress support
- [ ] TLS support
- [x] [critical] Out-of-the-box-auto-configured postgresql DB support
- [ ] Ingress / TLS support

## Usage
```bash
Expand All @@ -18,15 +17,17 @@ helm install nextgen-connect hiddehs-nextgen/nextgen-connect --set postgresql.po

- Mirth / NextGen Connect Docker image
- Custom entrypoint.sh to support running Kubernetes instance
- FHIR 🔥 plugin support
- `nextgen-connect` Helm chart
- uses custom `hiddehs/nextgen-connect` 3.11 docker image


### Custom `entrypoint.sh`
##### See [deployment.yaml](charts/nextgen-connect/templates/deployment.yaml#L51) `spec.template.spec.containers[0].env`

Following lines are added to the `entrypoint.sh` to make sure the connection within the container is forced to type postgres and the `JDBC_DATABASEURL` can be used for overriding GitLab's not jdbc-friendly `DATABASE_URL`

```bash
export DATABASE=postgres
export DATABASE_URL=$JDBC_DATABASE_URL
```

22 changes: 3 additions & 19 deletions charts/nextgen-connect/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
1. Get the Mirth SSL URL by running these commands:
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "nextgen-connect.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "nextgen-connect.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "nextgen-connect.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "nextgen-connect.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8443 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
echo https://$NODE_IP:$NODE_PORT
{{- end }}

0 comments on commit f5c21af

Please sign in to comment.