-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OZ-735: Add Dockerfile and github workflow (#1)
- Loading branch information
1 parent
29b838d
commit 414ac61
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
docker-build-publish: | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main | ||
with: | ||
image-name: "orthanc" | ||
image-version: "dev" | ||
secrets: | ||
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_REGISTRY_USERNAME }} | ||
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_REGISTRY_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Use the base Orthanc plugins image | ||
FROM jodogne/orthanc-plugins:latest | ||
|
||
RUN apt-get update && apt-get install -y openjdk-17-jdk cmake build-essential python3 unzip libjsoncpp-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 | ||
|
||
WORKDIR /home/root/ | ||
RUN wget -qO- https://orthanc.uclouvain.be/downloads/sources/orthanc-java/OrthancJava-1.0.tar.gz | tar xvz | ||
|
||
WORKDIR /home/root/OrthancJava-1.0 | ||
RUN mkdir BuildPlugin && \ | ||
cd BuildPlugin && \ | ||
cmake ../Plugin -DCMAKE_BUILD_TYPE=Release && \ | ||
make | ||
|
||
WORKDIR /home/root/OrthancJava-1.0 | ||
RUN mkdir BuildJavaSDK && \ | ||
cd BuildJavaSDK && \ | ||
cmake ../JavaSDK && \ | ||
make | ||
|
||
WORKDIR /home/root/ | ||
RUN wget https://orthanc.uclouvain.be/downloads/cross-platform/orthanc-java/mainline/OrthancFHIR.jar | ||
|
||
# Expose Orthanc default port | ||
EXPOSE 4242 8042 | ||
|
||
ENV LD_PRELOAD=/usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so | ||
ENTRYPOINT ["/usr/local/sbin/Orthanc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p align="center"> | ||
<a href="https://docs.ozone-his.com/"><img src="https://raw.githubusercontent.com/ozone-his/.github/refs/heads/main/profile/ozone-logo.png" alt="Ozone" width="30%"/></a> | ||
</p> | ||
|
||
<h3 align="center">The Instant HIS</h3> | ||
|
||
<p align="center"> | ||
Welcome to Ozone's open-source repositories! | ||
<br/>Engage with the Ozone community and access useful resources below: | ||
</p> | ||
|
||
<h3 align="center"> | ||
<a href="https://docs.ozone-his.com/">Docs</a> • <a href="https://talk.openmrs.org/c/software/ozone-his/70">Forum</a> • <a href="https://openmrs.slack.com/archives/C02PYQD5D0A">Chat Room</a> | ||
</h3> |