If I attempt to compile with MySQL I get the following errors:
docker build -t orthanc-img .
FROM debian:bullseye-slim
Label maintainer “davidh”
Port exposure 4242-DICOM 8042-web
EXPOSE 4242/tcp
EXPOSE 8042/tcp
Dockerfile args
ARG BASE_DIR=/root
Regional settings
ARG DEBIAN_FRONTEND=noninteractive ## accepts the default answer for all questions
ENV TZ=Etc/UTC
install dependencies
RUN apt update && apt upgrade -y
RUN apt install curl wget tar zip unzip patch tzdata -y
RUN apt install libpq-dev postgresql-server-dev-all -y
RUN apt install mercurial -y
RUN apt install cmake build-essential pkg-config zlib1g-dev libssl-dev
libcurl4-openssl-dev libgtest-dev libjsoncpp-dev libcrypto+±dev uuid-dev
libboost-all-dev libsqlite3-dev libccd-dev ninja-build libcurl4-openssl-dev
liblua5.1-0-dev libpng-dev libjpeg-dev libdcmtk2-dev libwrap0-dev libpugixml-dev
libcivetweb-dev -y
RUN apt autoremove
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
WORKDIR $BASE_DIR
Get orthanc repos
RUN hg clone https://hg.orthanc-server.com/orthanc/
RUN hg clone https://hg.orthanc-server.com/orthanc-object-storage/
RUN hg clone https://hg.orthanc-server.com/orthanc-databases/
Create build directories
RUN mkdir orthanc/build
RUN mkdir orthanc-object-storage/build
RUN mkdir orthanc-databases/build
Create Orthanc directories
RUN mkdir -p /etc/orthanc
RUN mkdir -p /usr/share/orthanc/plugins
# Orthanc S3 Plugin
WORKDIR $BASE_DIR/orthanc-object-storage/build
RUN cmake -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_VCPKG_PACKAGES=OFF -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$BASE_DIR/orthanc/OrthancFramework/Sources …/Aws
RUN make -j 4
RUN cp *.so /usr/share/orthanc/plugins/
# Orthanc PostgreSQL Plugin
WORKDIR $BASE_DIR/orthanc-databases/build
RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_SYSTEM_GOOGLE_TEST=ON -DUSE_SYSTEM_ORTHANC_SDK=OFF …/PostgreSQL
RUN make -j 4
RUN cp *.so /usr/share/orthanc/plugins/
Orthanc MySQL plug-in
WORKDIR $BASE_DIR/orthanc-databases/build
RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_SYSTEM_GOOGLE_TEST=ON -DUSE_SYSTEM_ORTHANC_SDK=OFF …/MySQL
RUN make -j 4
RUN cp *.so /usr/share/orthanc/plugins/
Orthanc server build
WORKDIR $BASE_DIR/orthanc/build
RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DSTANDALONE_BUILD=ON -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON -DUSE_SYSTEM_CIVETWEB=OFF -DUSE_SYSTEM_DCMTK=OFF -DUSE_SYSTEM_OPENSSL=OFF -DUSE_SYSTEM_CURL=OFF …/OrthancServer
RUN make -j 4
RUN make install
Copy local files
COPY *.json /etc/orthanc
Change permissions to execute
RUN chmod +x /usr/share/orthanc/plugins/*
RUN chmod +x /usr/local/bin/*
Run Orthanc
WORKDIR /usr/local/sbin/
CMD [ “Orthanc”, “-verbose”, “–trace”, “/etc/orthanc/” ]
.
.
=> ERROR [20/30] RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_SYSTEM_GOOGLE_TEST=ON -DUSE_SYSTEM_ORTHANC_SDK=OFF …/MySQL
.
.