Skip to content

Commit

Permalink
take orthanc indexer as a build argument
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 31, 2024
1 parent 2b0e8b3 commit 17d3be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ WORKDIR /root/src

# Indexer plugin to sync with the caMicroscope folder
COPY build_orthanc_indexer.sh .
ARG indexer
run echo $indexer
RUN chmod a+x build_orthanc_indexer.sh
RUN ./build_orthanc_indexer.sh
RUN ./build_orthanc_indexer.sh $indexer
RUN chmod a+x libOrthancIndexer.so

COPY . .
Expand Down
4 changes: 3 additions & 1 deletion build_orthanc_indexer.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
set -e
set -x

indexer=$1

# https://book.orthanc-server.com/plugins/indexer.html

git clone https://github.com/camicroscope/orthanc-indexer --branch=v3.11.0
git clone https://github.com/camicroscope/orthanc-indexer --branch=${indexer:-main} --depth 1

cd orthanc-indexer/src
mkdir build
Expand Down

0 comments on commit 17d3be0

Please sign in to comment.