Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with upstream repo #68

Open
wants to merge 131 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
a95c40d
fixed SubscriptionDebugLogInterceptor adding logic
patrick-werner Oct 6, 2022
d61c8a5
switch to postgres db (#444)
rti Oct 11, 2022
a1e2ca3
revering to H2 (#449)
jkiddo Oct 27, 2022
f8d749a
Tracking Hapi 6.2-PRE releases (#408)
jmarchionatto Nov 12, 2022
64aeb9b
Added hibernate.dialect for Postgress to Readme (#451)
Kai-W Nov 12, 2022
2e1f5f5
fixes for support of R4B / 6.2.0 (#455)
jkiddo Nov 12, 2022
4fb2558
upping hapi version to 6.2.1
markiantorno Nov 17, 2022
daea391
Merge pull request #457 from hapifhir/update_HAPI_version
markiantorno Nov 17, 2022
05d76c7
Updated Helm chart to use image 6.2.1 and latest PostgreSQL (#458)
chgl Nov 24, 2022
19c68e7
Bumped version (#462)
jkiddo Dec 3, 2022
ba58a71
allow interceptors to be registered via properties
XcrigX Dec 21, 2022
1943589
Merge pull request #467 from XcrigX/feature/interceptor-discovery
jamesagnew Dec 21, 2022
9a513cd
Update pom.xml to reference hapi-fhir 6.3.6-SNAPSHOT. This hapi-fhir…
lukedegruchy Jan 5, 2023
96ff27f
Feature/static files (#456)
jkiddo Jan 5, 2023
d903ab9
Remove old junit4 usage.
inspector-cochise Jan 10, 2023
f8c69bf
Merge pull request #474 from inspector-cochise/junit-dep-remove
KevinDougan Jan 10, 2023
0c7e48c
Revert "Update pom.xml to reference hapi-fhir 6.3.6-SNAPSHOT. This h…
lukedegruchy Jan 10, 2023
f3493c7
Restore rolled back changes to ExampleServerR4BIT that pass unnecessa…
lukedegruchy Jan 10, 2023
76650df
First commit to restore hapi-fhir 6.3.6-SNAPSHOT changes. Add static…
lukedegruchy Jan 10, 2023
07d9a19
Feature/index default (#475)
jkiddo Jan 10, 2023
ef8c487
Updated Helm chart to use hapi fhir image 6.2.2 (#472)
chgl Jan 10, 2023
d9f5e5c
Merge remote-tracking branch 'origin/master' into ld-20230110-hapi-fh…
lukedegruchy Jan 10, 2023
38ed00a
Implement a new solution: Instead of static code blocks disabling lo…
lukedegruchy Jan 10, 2023
ea3d858
Fix tests for websocket
jamesagnew Jan 11, 2023
8f528db
Update pipeline to run integration tests.
lukedegruchy Jan 11, 2023
cd6a876
Merge pull request #483 from hapifhir/ld-20230111-pipeline-maven-verify
markiantorno Jan 12, 2023
5b42944
Merge remote-tracking branch 'origin/master' into ld-20230110-hapi-fh…
lukedegruchy Jan 12, 2023
c7962b6
Merge pull request #482 from hapifhir/ld-20230110-hapi-fhir-6-3-6-sna…
markiantorno Jan 13, 2023
7c89add
Initial IPS + Cql to Cr migration
psavva Jan 16, 2023
c7ee984
Allow Enabling IPS via config
psavva Jan 16, 2023
99ea176
typo
psavva Jan 16, 2023
e905da7
CQL to CR
psavva Jan 16, 2023
64b497e
HAPI FHIR bump
jamesagnew Jan 24, 2023
3f66973
docs: Updated README.md. Discontinue mysql
juvarabrera Feb 4, 2023
9847d82
Merge pull request #491 from juvarabrera/update-readme
jamesagnew Feb 4, 2023
c9bc40c
removed mysql-connector-java dependency since no longer supported and…
XcrigX Feb 8, 2023
7dd1619
Merge pull request #495 from XcrigX/remove-mysql-dependency
jamesagnew Feb 9, 2023
c88d26d
docs: Fix postgresql typo in docker-compose
juvarabrera Feb 5, 2023
b6c1b9f
docs: Explicitly set hibnerate.search.enabled to false if database is…
juvarabrera Feb 5, 2023
74be713
refactor: Separate unrelated settings and documentation
juvarabrera Feb 5, 2023
7f7ea92
docs: Explicitly set hibernate.search.enabled to false if database is…
juvarabrera Feb 5, 2023
35d09cc
docs: Revert dislaimer in postgres
juvarabrera Feb 5, 2023
19988c5
Bump Hapi
dotasek Feb 14, 2023
9d126a4
Fix Application error regarding multiple beans
dotasek Feb 14, 2023
afcd2fc
Add optional explicit ip config for smoke tests
dotasek Feb 14, 2023
20ed5d9
Revert "Add optional explicit ip config for smoke tests"
dotasek Feb 14, 2023
9cabe35
Merge pull request #498 from hapifhir/rel_6_4
tadgh Feb 17, 2023
236c1e8
Spelling error in Application.yaml
psavva Mar 1, 2023
cb4f560
Merge pull request #505 from psavva/patch-4
KevinDougan Mar 1, 2023
c83e324
configuration option to not reload IG resources that are already loaded
XcrigX Mar 23, 2023
600f3fe
Update docker-compose sample with small application.properties
Bert-R Feb 22, 2023
43890a4
Removed explicit inclusion of snakeyaml and allow spring-boot-starter…
Mar 31, 2023
7e0fb80
Simplify using an interceptor with Docker
Bert-R Mar 31, 2023
c73c580
Update pom.xml
jkiddo Feb 27, 2023
a1bdba5
Update pom.xml
jkiddo Mar 3, 2023
d96c90c
Update pom.xml
jkiddo Mar 30, 2023
75e0e68
497 - Fix typo on property setter.
May 5, 2023
4077cf5
Merge pull request #522 from hapifhir/497-set-bundle-batch-max-pool-size
KevinDougan May 5, 2023
e8d1931
Create smoke-tests.yml
dotasek May 9, 2023
d47d048
Update smoke-tests.yml
dotasek May 9, 2023
f1765a3
Rename plain_server.rest to plain_server.http
dotasek May 9, 2023
dbd6ff0
Update smoke-tests.yml
dotasek May 9, 2023
ec64299
Update smoke-tests.yml
dotasek May 9, 2023
b4ab761
Merge pull request #524 from hapifhir/do-20230509-smoke-test-ci
markiantorno May 17, 2023
3eab2fc
Use docker for HTTP client
dotasek May 19, 2023
8b7c35c
Try fixing TTY issue
dotasek May 19, 2023
f54088e
Sleep a little longer...
dotasek May 19, 2023
9a18b23
Additional param for linux localhost
dotasek May 19, 2023
8bf9dfd
Intentional failure
dotasek May 19, 2023
a2cf95a
Restore reasonable sleep time
dotasek May 19, 2023
eb65ec6
Merge pull request #535 from hapifhir/do-20230519-use-docker-for-smok…
markiantorno May 23, 2023
53a958a
Bump HAPI to release 6.6.0 (#539)
dotasek May 29, 2023
9e9c08b
Add fix to enable the CR module.
May 30, 2023
2899060
Addressed comment to for cr_enabled flag.
May 30, 2023
a06c0b9
Merge pull request #541 from hapifhir/501_fix_cr_enabled
jmarchionatto May 31, 2023
afaec85
Addressing https://github.com/hapifhir/hapi-fhir-jpaserver-starter/is…
jkiddo Jun 9, 2023
0a91a2d
Merge branch 'hapifhir:master' into feat/static-hosting-additions
jkiddo Jun 9, 2023
776afde
no message
jkiddo Jun 25, 2023
b4232e7
Merge branch 'hapifhir:master' into feature/tester-configurable
jkiddo Jun 25, 2023
fdcd021
Updated helm chart and dockerfile dependencies (#540)
chgl Jun 25, 2023
484aa9d
Boyscouting (#558)
winne42 Jul 11, 2023
9d8fc4d
#563 Add configuration for auto-versioning references
winfriedgerlach Jul 12, 2023
98165e8
#563 fix indentation
winfriedgerlach Jul 13, 2023
5bd43b2
Merge pull request #564 from winne42/feature/add_configuration_for_au…
patrick-werner Jul 18, 2023
8ef5083
Updated helm chart with additional config settings (#566)
chgl Jul 21, 2023
e9f29af
Bump to hapi 6.8.0-SNAPSHOT
dotasek Jul 31, 2023
aafd4fa
Switch to new ca.uhn.fhir.batch2.jobs.export to fix StarterJpaConfig
dotasek Jul 31, 2023
bf7698b
Merge remote-tracking branch 'origin/master' into do-20230731-bump-to…
dotasek Jul 31, 2023
3c395e9
WIP try to expand default max_result_window
dotasek Aug 10, 2023
f7853f5
Fix up test
tadgh Aug 10, 2023
bdf593f
Clean up code
dotasek Aug 10, 2023
1907536
Fix one more failing IT config
dotasek Aug 10, 2023
7265b11
Leave comment in case of updates
dotasek Aug 10, 2023
69ff8c4
Bump to HAPI 6.8.0
dotasek Aug 17, 2023
b88ffda
Fix breakages due to https://github.com/hapifhir/hapi-fhir/pull/5180
dotasek Aug 17, 2023
8b0623d
Merge pull request #572 from hapifhir/do-20230731-bump-to-hapi-6-8-0
dotasek Aug 17, 2023
0252fa4
Merge pull request #556 from trifork/feature/tester-configurable
patrick-werner Aug 22, 2023
d6e9aba
Merge pull request #546 from trifork/feat/static-hosting-additions
patrick-werner Aug 22, 2023
37a9317
Feature/using package installer spec (#577)
jkiddo Aug 22, 2023
39fba77
#580 Build artifact contain certain unused (but declared) dependencies
Thopap Aug 31, 2023
2fead63
Start tracking 6.9.x-SNAPSHOT
michaelabuckley Aug 31, 2023
63c4825
Fixing some typos in README.md
HussamNujaim Sep 2, 2023
0255d37
Merge pull request #1 from HussamNujaim/typos-readme
HussamNujaim Sep 2, 2023
bfa85ce
Merge pull request #582 from HussamNujaim/master
KevinDougan Sep 5, 2023
f93ea20
Merge pull request #581 from Thopap/master
jamesagnew Oct 2, 2023
2307413
Fixing null beans as mentioned on https://github.com/hapifhir/hapi-fh…
jkiddo Oct 10, 2023
aeabf62
Merge branch 'master' of github.com:jkiddo/hapi-fhir-jpaserver-starter
jkiddo Oct 10, 2023
5dade56
Update application.yaml
jkiddo Oct 11, 2023
7cad4f3
Merge pull request #593 from jkiddo/master
KevinDougan Oct 11, 2023
252219d
Bump HAPI version to 6.8.3
dotasek Oct 11, 2023
4f6f316
Fix ExampleServerDstu3IT
dotasek Oct 12, 2023
6b8c702
Bump HAPI version to 6.9.9-SNAPSHOT
dotasek Oct 12, 2023
bcd1035
Formatting
dotasek Oct 12, 2023
ce0d7d4
Fix ExampleServerR4IT, restrict config to specific tests
dotasek Oct 12, 2023
bd8dc63
Merge remote-tracking branch 'origin/master' into rel_6_9_tracking
dotasek Oct 12, 2023
55d9973
Merge pull request #597 from hapifhir/do-20231011-6_8_x
dotasek Oct 12, 2023
735a6bd
Merge branch 'master' into rel_6_9_tracking
dotasek Oct 12, 2023
0afe6ae
Fix formatting
dotasek Oct 12, 2023
d2b421a
Merge pull request #594 from hapifhir/jkiddo-patch-1
dotasek Oct 13, 2023
afce59e
Bump to 6.9.10-SNAPSHOT
dotasek Oct 24, 2023
49c3db2
Merge remote-tracking branch 'origin/master' into rel_6_9_tracking
dotasek Oct 24, 2023
3640bd0
Updated helm chart to use image v6.8.0 and some minor improvements (#…
chgl Oct 28, 2023
5ae8349
Merge remote-tracking branch 'origin/master' into rel_6_9_tracking
dotasek Nov 8, 2023
21d51be
remove redundant/unused reload-existing-ig property (#607)
XcrigX Nov 21, 2023
d55aa31
Bump parent pom to version 6.10.0
dotasek Nov 22, 2023
4bfa537
Merge remote-tracking branch 'origin/master' into rel_6_9_tracking
dotasek Nov 22, 2023
b0ae4f2
Merge pull request #598 from hapifhir/rel_6_9_tracking
dotasek Nov 22, 2023
1f7d25c
Feat/ig install (#601)
jkiddo Nov 23, 2023
f147c83
Bump setup-java and checkout versions in github actions (#613)
dotasek Nov 24, 2023
dbe5572
Update with upstream branch
rehammuzzamil Nov 28, 2023
886a65e
Fix project and HAPI versionings
rehammuzzamil Nov 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/ct/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ helm-extra-args: --timeout 300s
upgrade: true
skip-missing-values: true
release-label: release
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
release-name-template: "helm-v{{ .Version }}"
13 changes: 7 additions & 6 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Add workspace as safe directory
run: |
git config --global --add safe.directory /__w/hapi-fhir-jpaserver-starter/hapi-fhir-jpaserver-starter

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0

Expand All @@ -21,14 +25,11 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"

- name: Add bitnami repo
run: helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Update dependencies
run: find charts/ ! -path charts/ -maxdepth 1 -type d -exec helm dependency update {} \;

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.0
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
with:
config: .github/ct/config.yaml
env:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/chart-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
container: quay.io/helmpack/chart-testing:v3.4.0
runs-on: ubuntu-22.04
container: quay.io/helmpack/chart-testing:v3.8.0@sha256:f058c660a28d99a9394ae081d98921efe068079531f247c86b8054e3c9d407aa
steps:
- name: Install helm-docs
working-directory: /tmp
env:
HELM_DOCS_URL: https://github.com/norwoodj/helm-docs/releases/download/v1.11.0/helm-docs_1.11.0_Linux_x86_64.tar.gz
HELM_DOCS_URL: https://github.com/norwoodj/helm-docs/releases/download/v1.11.3/helm-docs_1.11.3_Linux_x86_64.tar.gz
run: |
curl -LSs $HELM_DOCS_URL | tar xz && \
mv ./helm-docs /usr/local/bin/helm-docs && \
chmod +x /usr/local/bin/helm-docs && \
helm-docs --version

- name: Add workspace as safe directory
run: |
git config --global --add safe.directory /__w/hapi-fhir-jpaserver-starter/hapi-fhir-jpaserver-starter

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0

Expand All @@ -34,20 +38,20 @@ jobs:
run: ct lint --config .github/ct/config.yaml

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
k8s-version: [1.22.9, 1.23.6, 1.24.1]
k8s-version: [1.25.9, 1.26.4, 1.27.2]
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.1
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -58,13 +62,12 @@ jobs:
fi

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.2.0
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@fa81e57adff234b2908110485695db0f181f3c67 # v1.7.0
if: ${{ steps.list-changed.outputs.changed == 'true' }}
with:
version: v0.14.0
cluster_name: kind-cluster-k8s-${{ matrix.k8s-version }}
node_image: kindest/node:v${{ matrix.k8s-version }}

- name: Run chart-testing (install)
run: ct install --config .github/ct/config.yaml
if: steps.list-changed.outputs.changed == 'true'
if: ${{ steps.list-changed.outputs.changed == 'true' }}
7 changes: 4 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml verify
41 changes: 41 additions & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will build the Java project with Maven and peform IntelliJ smoke tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Smoke Tests

on:
push:
branches:
- '**'
paths-ignore:
- "charts/**"
pull_request:
branches: [ master ]
paths-ignore:
- "charts/**"

jobs:
build_and_smoke_test:

runs-on: ubuntu-latest

steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- name: Build with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
- name: Docker Pull HTTP client
run: docker pull jetbrains/intellij-http-client
- name: Start server with jetty
run: |
mvn jetty:run & export JPA_PROCESS=$!
sleep 80
- name: Execute smoke tests
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default


14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"configurations": [
{
"type": "java",
"name": "Spring Boot-Application<hapi-fhir-jpaserver-starter>",
"request": "launch",
"cwd": "${workspaceFolder}",
"mainClass": "ca.uhn.fhir.jpa.starter.Application",
"projectName": "hapi-fhir-jpaserver-starter",
"args": "",
"envFile": "${workspaceFolder}/.env"
}
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
}
},
"java.compile.nullAnalysis.mode": "disabled"
}
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8-openjdk-17-slim as build-hapi
FROM docker.io/library/maven:3.9.4-eclipse-temurin-17 AS build-hapi
WORKDIR /tmp/hapi-fhir-jpaserver-starter

ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.17.0
ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.31.0
RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar

COPY pom.xml .
Expand All @@ -12,13 +12,13 @@ COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/
RUN mvn clean install -DskipTests -Djdk.lang.Process.launchMechanism=vfork

FROM build-hapi AS build-distroless
RUN mvn package spring-boot:repackage -Pboot
RUN mvn package -DskipTests spring-boot:repackage -Pboot
RUN mkdir /app && cp /tmp/hapi-fhir-jpaserver-starter/target/ROOT.war /app/main.war


########### bitnami tomcat version is suitable for debugging and comes with a shell
########### it can be built using eg. `docker build --target tomcat .`
FROM bitnami/tomcat:9.0 as tomcat
FROM bitnami/tomcat:9.0 AS tomcat

RUN rm -rf /opt/bitnami/tomcat/webapps/ROOT && \
mkdir -p /opt/bitnami/hapi/data/hapi/lucenefiles && \
Expand All @@ -36,7 +36,7 @@ COPY --from=build-hapi --chown=1001:1001 /tmp/hapi-fhir-jpaserver-starter/opente
ENV ALLOW_EMPTY_PASSWORD=yes

########### distroless brings focus on security and runs on plain spring boot - this is the default image
FROM gcr.io/distroless/java17-debian11:nonroot as default
FROM gcr.io/distroless/java17-debian11:nonroot AS default
# 65532 is the nonroot user's uid
# used here instead of the name to allow Kubernetes to easily detect that the container
# is running as a non-root (uid != 0) user.
Expand All @@ -46,4 +46,4 @@ WORKDIR /app
COPY --chown=nonroot:nonroot --from=build-distroless /app /app
COPY --chown=nonroot:nonroot --from=build-hapi /tmp/hapi-fhir-jpaserver-starter/opentelemetry-javaagent.jar /app

CMD ["/app/main.war"]
ENTRYPOINT ["java", "--class-path", "/app/main.war", "-Dloader.path=main.war!/WEB-INF/classes/,main.war!/WEB-INF/,/app/extra-classes", "org.springframework.boot.loader.PropertiesLauncher"]
Loading
Loading