-
Notifications
You must be signed in to change notification settings - Fork 14
Installation on Apple Silicon with Container
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.
Load and install the latest package from github.com/apple/container.
container system start
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.
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.
Copy elexis-server.sh to the escontainer folder.
container build -f Containerfile -t elexisserver
container run --name elexis-server -it elexisserver
container start -i elexis-server
http://elexis-server.test/fhir/Patient?name=Muster
nc elexis-server.test 7234
lxs list the commands.
p2 update execute update the server.