Skip to content

Commit 414ac61

Browse files
OZ-735: Add Dockerfile and github workflow (#1)
1 parent 29b838d commit 414ac61

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

.github/workflows/build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
docker-build-publish:
11+
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
12+
with:
13+
image-name: "orthanc"
14+
image-version: "dev"
15+
secrets:
16+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_REGISTRY_USERNAME }}
17+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_REGISTRY_PASSWORD }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode
2+
.idea

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Use the base Orthanc plugins image
2+
FROM jodogne/orthanc-plugins:latest
3+
4+
RUN apt-get update && apt-get install -y openjdk-17-jdk cmake build-essential python3 unzip libjsoncpp-dev \
5+
&& apt-get clean \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
9+
10+
WORKDIR /home/root/
11+
RUN wget -qO- https://orthanc.uclouvain.be/downloads/sources/orthanc-java/OrthancJava-1.0.tar.gz | tar xvz
12+
13+
WORKDIR /home/root/OrthancJava-1.0
14+
RUN mkdir BuildPlugin && \
15+
cd BuildPlugin && \
16+
cmake ../Plugin -DCMAKE_BUILD_TYPE=Release && \
17+
make
18+
19+
WORKDIR /home/root/OrthancJava-1.0
20+
RUN mkdir BuildJavaSDK && \
21+
cd BuildJavaSDK && \
22+
cmake ../JavaSDK && \
23+
make
24+
25+
WORKDIR /home/root/
26+
RUN wget https://orthanc.uclouvain.be/downloads/cross-platform/orthanc-java/mainline/OrthancFHIR.jar
27+
28+
# Expose Orthanc default port
29+
EXPOSE 4242 8042
30+
31+
ENV LD_PRELOAD=/usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so
32+
ENTRYPOINT ["/usr/local/sbin/Orthanc"]

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<p align="center">
2+
<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>
3+
</p>
4+
5+
<h3 align="center">The Instant HIS</h3>
6+
7+
<p align="center">
8+
Welcome to Ozone's open-source repositories!
9+
<br/>Engage with the Ozone community and access useful resources below:
10+
</p>
11+
12+
<h3 align="center">
13+
<a href="https://docs.ozone-his.com/">Docs</a>&nbsp;&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://talk.openmrs.org/c/software/ozone-his/70">Forum</a>&nbsp;&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://openmrs.slack.com/archives/C02PYQD5D0A">Chat Room</a>
14+
</h3>

0 commit comments

Comments
 (0)