annotate Dockerfile @ 88:43c2644e55a4

todo: AWS Glacier
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Nov 2022 08:58:13 +0100
parents ac596874d997
children 6aa3ec905f58
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)
ac596874d997 fix client side encryption
Alain Mazy <am@osimis.io>
parents:
diff changeset
14 RUN hg clone https://hg.orthanc-server.com/orthanc/ -r "Orthanc-1.10.1"
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/*