annotate Dockerfile @ 145:3c7e0374f28e

updated copyright, as Orthanc Team now replaces Osimis
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 May 2024 22:35:35 +0200
parents 6aa3ec905f58
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
1 # This is a dev Dockerfile in case you need to rebuild an osimis/orthanc image with a test
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
2 # version of the s3 plugin
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
3 # docker build -t osimis/orthanc:s3test .
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
4
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
5 FROM osimis/orthanc-builder-base:bullseye-20220328-slim-stable as orthanc-builder-base
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
6
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
7 FROM orthanc-builder-base as build-s3-object-storage
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
8
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
9 WORKDIR /
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
10
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
11 WORKDIR /sources
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
12
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
13 # (framework version used to build the cloud storage plugins)
124
6aa3ec905f58 migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
14 RUN hg clone https://orthanc.uclouvain.be/hg/orthanc/ -r "Orthanc-1.10.1"
75
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
15
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
16 RUN mkdir orthanc-object-storage
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
17
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
18 COPY . /sources/orthanc-object-storage
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
19
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
20
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
21 RUN mkdir -p /build/cloud-storage/aws
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
22 WORKDIR /build/cloud-storage/aws
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
23 RUN cmake -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_VCPKG_PACKAGES=OFF -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=/sources/orthanc/OrthancFramework/Sources /sources/orthanc-object-storage/Aws/
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
24 RUN make -j 8
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
25
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
26
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
27 FROM osimis/orthanc:22.7.0
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
28
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
29 COPY --from=build-s3-object-storage /build/cloud-storage/aws/libOrthancAwsS3Storage.so /usr/share/orthanc/plugins-available/
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
30
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
31 RUN chmod +x /usr/share/orthanc/plugins-available/*