hapi-fhir-jpaserver-starter icon indicating copy to clipboard operation
hapi-fhir-jpaserver-starter copied to clipboard

Can't deploy on Mac M1 using Docker

Open neumartin opened this issue 3 years ago • 3 comments

Hi there!

I try to deploy on a Macbook Pro M1 Max using this Docker command:

docker run -d -p 8080:8080 --name hapi-fhir hapiproject/hapi:latest

But after several hours I can reach http://localhost:8080

This is the container log:

02 05:59:34.047 [main] INFO  o.h.s.m.o.b.i.HibernateSearchIntegrator [HibernateSearchIntegrator.java:65] HSEARCH000034: Hibernate Search version 6.0.3.Final

2022-06-02 05:59:41.129 [main] INFO  o.h.e.t.j.p.i.JtaPlatformInitiator [JtaPlatformInitiator.java:52] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]

2022-06-02 05:59:41.185 [main] INFO  c.u.f.j.c.HapiFhirLocalContainerEntityManagerFactoryBean [AbstractEntityManagerFactoryBean.java:437] Initialized JPA EntityManagerFactory for persistence unit 'HAPI_PU'

2022-06-02 05:59:46.949 [main] INFO  c.u.f.j.s.BaseSchedulerServiceImpl [BaseSchedulerServiceImpl.java:204] Scheduling local job ca.uhn.fhir.jpa.cache.ResourceChangeListenerCacheRefresherImpl with interval 00:00:10.000

2022-06-02 05:59:47.487 [main] INFO  c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupport.java:327] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-resources.xml

2022-06-02 05:59:47.610 [main] INFO  ca.uhn.fhir.util.XmlUtil [DependencyLogImpl.java:75] FHIR XML procesing will use StAX implementation 'Woodstox' version '6.2.5'

neumartin avatar Jun 02 '22 12:06 neumartin

Hi. Can you check docker to make sure you are running a native linux/arm64 image? You may be running a linux/amd64 image in x86 emulation.

michaelabuckley avatar Jun 02 '22 14:06 michaelabuckley

Thanks, @michaelabuckley!! I changed the docker command with these, and it worked fine!

docker run --platform linux/amd64 -d -p 8080:8080 --name hapi-fhir hapiproject/hapi:latest

neumartin avatar Jun 02 '22 15:06 neumartin

@michaelabuckley, have you an arm64 native image? How can I run the docker run command?

neumartin avatar Jun 02 '22 15:06 neumartin

Closed as stale

jkiddo avatar Apr 16 '24 17:04 jkiddo