Stream: hapi
Topic: Deploy HAPI in Linux Debian
Raed MO (Jun 28 2020 at 14:51):
Hi,
I cloned the hapi-fhir-jpaserver-starter and modified the code to meet my requirements then did as they said in the README file:
mvn clean install
docker-compose up -d --build
It did deploy the server but with a new fresh HAPI server, not the one I modified and built.
How can I use docker compose to deploy my build not the version he gets from the docker repo ?
Here is my docker-compose.yml (same as the github repo) :
version: "3"
services:
hapi-fhir-jpaserver-start:
build: .
container_name: hapi-fhir-jpaserver-start
restart: on-failure
ports:
- "8888:8080"
hapi-fhir-mysql:
image: mysql:latest
container_name: hapi-fhir-mysql
restart: always
environment:
MYSQL_DATABASE: 'hapi'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'admin'
MYSQL_ROOT_PASSWORD: 'admin'
volumes:
- hapi-fhir-mysql:/var/lib/mysql
volumes:
hapi-fhir-mysql:
I tried to deploy the normal way with WAR file in tomcat but it didn't work, the file is too big 144 MB and if I copy it into /webapps and execute it from host manager it says unable to start
Raed MO (Jun 28 2020 at 14:52):
Hi, any help with that topic please ?
Jens Villadsen (Jun 28 2020 at 20:04):
From what I can see - the current docker-compose ignores any local builds even though one could get another impression reading the docs. @Patrick Werner / @James Agnew would you know why there isn't any samples using eg. Google jib for building the image? It would make it at lot easier for new-commers i think.
DevGeek (Jun 29 2020 at 00:10):
Hi, with HAPI Fhir, I can only use MySQL or Postgres ? And can you please share you previous experiences
Jens Villadsen (Jun 29 2020 at 15:13):
HAPI FHIR is based on hibernate. Anything that fits hibernate, fits HAPI
DevGeek (Jul 01 2020 at 16:10):
Hi can I add a custom resource in my hapi-fhir-jpaserver ?
Jens Villadsen (Jul 01 2020 at 16:53):
Yes
DevGeek (Jul 01 2020 at 16:55):
How @Jens Villadsen ?
Jens Villadsen (Jul 01 2020 at 16:58):
Start by having a look at https://hapifhir.io/hapi-fhir/docs/model/custom_structures.html#custom-resource-structure
DevGeek (Jul 06 2020 at 11:03):
Hi, there is someone who answered my deploy with Docker question, but I lost the answer ! can you please repost it ? Thanks
Last updated: Apr 12 2022 at 19:14 UTC