FHIR Chat · Docker Container Test Installation · implementers

Stream: implementers

Topic: Docker Container Test Installation


view this post on Zulip peter stroessler (Mar 17 2021 at 11:36):

For a college work we like to use a docker container with cors/cross-site-request enabled and in addition with using another than in memory database (mysql or eventually postgresql). Can anyone give me and my mate a tip. What is the best option
to choose?

view this post on Zulip peter stroessler (Mar 17 2021 at 11:51):

you can also contact me by using the following email address: fapip66931@ichkoch.com

view this post on Zulip Dexter (Mar 17 2021 at 11:54):

I started with the jap starter project, which is docker-ized. You can find the link to the prebuilt docker container there, and just using that should do. If I recall correctly, it used the H2 database engine (not in memory)

view this post on Zulip peter stroessler (Mar 17 2021 at 12:09):

Dexter, thank you for the answer we used docker run -p 8080:8080 -e hapi.fhir.default_encoding=xml hapiproject/hapi:latest from the jpa starter site. This led to a non cross-site-request capable resource..The command results into using h2 as datasource but we would prefer mysql instead, if possible.

view this post on Zulip Dexter (Mar 17 2021 at 12:13):

MySql

Try these configuration steps?

CORS

You'll need to edit the application.yaml to allow the domains you need

view this post on Zulip peter stroessler (Mar 17 2021 at 12:21):

cool, thank you! this is the solution. Hope this then works as expected...as a fallback we chose without another.application.yaml, still we can link this, like described in the docu, Thank you very much! Further issue is that the mysql db stays empty still after havin posted data...Is there something wrong...There are the Quartz Spring Errors in the log if I remember right. Another question: What is the suiting local hapi port inside the container, what is the difference between the ports inside the container?

view this post on Zulip Dexter (Mar 17 2021 at 12:34):

mysql db stays empty

Hmm I'm not sure then. Does a GET on the resource endpoint return the data as expected?

Quartz Spring Errors

I'm not familiar with the framework, but if you post the logs, then maybe someone will help you

What is the suiting local hapi port inside the container, what is the difference between the ports inside the container?

Port forwarding allows things outside the container to reach the app inside the container

view this post on Zulip peter stroessler (Mar 17 2021 at 12:45):

We plan to continue tomorrow, I don't exacly know if a get returns something when using mysql datasource...I think it did return a response with the data....We keep the version with the string quartz errors, we contrinue tomorrow in pair programming. Okay then is it okay to use the custom config setup with ports 8080:8080?

view this post on Zulip Dexter (Mar 17 2021 at 12:47):

is it okay to use the custom config setup with ports 8080:8080

Yeah first number can be anything, and the second should be the same as where HAPI is listening

view this post on Zulip peter stroessler (Mar 17 2021 at 12:50):

Okay very good, thank you very much Dexter, bye!


Last updated: Apr 12 2022 at 19:14 UTC