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

Docker example for custom content path #740

Open
jgsuess opened this issue Sep 25, 2024 · 3 comments
Open

Docker example for custom content path #740

jgsuess opened this issue Sep 25, 2024 · 3 comments

Comments

@jgsuess
Copy link

jgsuess commented Sep 25, 2024

I need to override the default branding in a K8S deploy of HAPI in order to give some legal heads up about not storing real data on the server. So this is actually quite important.

I cannot get this to work, probably because I do not know where the mount for the custom directory needs to be placed in the container.

The application.yaml says about hapi.fhir.custom_content_path:

    ### Folder with custom content MUST be named custom. If omitted then default content applies
    #custom_content_path: ./custom

Hence, I have added an environment variable to signal that the facility is active, copied the custom directory from the starter project and mounted it as shown below. I have tried various mount locations, including absolute paths, and none of them seem to work.

Could you please give an example of how to make this call and maybe even add it to the documentation?

docker run --rm -p 8080:8080 -e hapi.fhir.default_encoding=xml -e hapi.fhir.custom_content_path=./custom hapiproject/hapi:latest -v $(pwd)/custom:/app/custom &

@joofio
Copy link

joofio commented Sep 25, 2024

this should help.
https://github.com/hl7-eu/vanilla-sandbox

@joofio
Copy link

joofio commented Oct 4, 2024

did it work?

@jgsuess
Copy link
Author

jgsuess commented Oct 12, 2024

Yes, after some training I am writing up a summary on how to customize it so others will have an easier time. My goal is to automate a container build, but I am currently stuck with this issue :( GoogleContainerTools/kaniko#1984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants