Skip to content

Installation on Apple Silicon with Container

tecalto edited this page Aug 12, 2025 · 1 revision

This is an instruction for installing the Elexisserver on AppleSilicon with the Containerframework from Apple.

Warning: This installation is insecure and should only used in private network for developing.

Container

Install

Load and install the latest package from github.com/apple/container.

Start

container system start

Create DNS server

sudo container system dns create test
container system dns default set test

Then the server can be accessed via <servername>.test. The IP address of the container may change with each start.

Create container

Create container file

mkdir escontainer && cd escontainer
nano Containerfile

Content of the container file:

FROM eclipse-temurin:21-jre-alpine

RUN apk add --no-cache tzdata bash gcompat cups-client 

ENV TZ=Europe/Zurich
ENV LANGUAGE=en_US:en
ENV LANG=de_CH.UTF-8
ENV LC_ALL=de_CH.UTF-8

RUN addgroup --gid 1001 elexis && adduser -S -u 1001 -G elexis -g "" -h /elexis elexis
RUN mkdir -p /opt/elexis-server
RUN wget https://download.elexis.info/elexis-server/master/products/info.elexis.server.runtime.product-linux.gtk.aarch64.zip
RUN unzip -d /opt/elexis-server/ info.elexis.server.runtime.product-linux.gtk.aarch64.zip
RUN rm info.elexis.server.runtime.product-linux.gtk.aarch64.zip
COPY elexis-server.sh /opt/elexis-server/
RUN chmod +x /opt/elexis-server/elexis-server.sh
RUN chown -R elexis:elexis /opt/elexis-server /elexis
USER elexis
WORKDIR /elexis

ENV DB_TYPE=postgresql
ENV DB_HOST=<host>
ENV DB_DATABASE=<database>
ENV DB_USERNAME=<username>
ENV DB_PASSWORD=<password>
ENV DB_JDBC_PARAMETER_STRING=sslmode=disable

ENV DISABLE_WEB_SECURITY=true

CMD ["/opt/elexis-server/elexis-server.sh"]

The connection data must be provided individually.

elexis-server.sh

Copy elexis-server.sh to the escontainer folder.

Build container image

container build -f Containerfile -t elexisserver

Run container

For first time

container run --name elexis-server -it elexisserver

Start again

container start -i elexis-server

FHIR

http://elexis-server.test/fhir/Patient?name=Muster

ES OSGI console

nc elexis-server.test 7234

lxs list the commands.

p2 update execute update the server.