Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openjdk:11-slim-bullseye
RUN apt-get update && apt-get install curl -y
RUN curl -L -O https://github.com/SagaHealthcareIT/mirthsync/releases/download/3.1.0/mirthsync-3.1.0.tar.gz\
&& echo 'e602af6636cf139146377f98cf56331d7cb1f62fa0cdf57e8555a4a66388d420 mirthsync-3.1.0.tar.gz' | sha256sum -c

RUN tar -xvzf mirthsync-3.1.0.tar.gz -C /opt\
&& ln -s /opt/mirthsync-3.1.0/bin/mirthsync.sh /usr/local/bin/mirthsync

RUN mkdir /mirth_configs
3 changes: 3 additions & 0 deletions exampe_backup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker build -t mirth-backup .
MIRTH_CMD="mirthsync -i -f -s <SERVER_NAME> -u <USERNAME> -p <PASSWORD> -t ./mirth_configs pull"
docker run -v $(pwd)/mirth_configs:/mirth_configs mirth-backup:latest $MIRTH_CMD