Skip to content

Commit

Permalink
fix: incorrect series metadata query
Browse files Browse the repository at this point in the history
Missing the query in getSeriesMetadata function.

build(dockerfile): fix gdcm download url

build(dockerfile): add build dcmtk
  • Loading branch information
Chinlinlee committed May 23, 2021
1 parent bc5c6c4 commit 3ae90ba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ RUN apt-get update -y && apt-get install python -y

RUN apt-get install python3-pip -y
RUN pip3 install --upgrade pip
RUN pip3 install pydicom
RUN pip3 install opencv-python
RUN pip3 install pydicom opencv-python Pillow

RUN apt-get install software-properties-common -y
RUN apt-get update ##[edited]
Expand All @@ -25,7 +24,7 @@ swig \
netcat

#Build gdcm
RUN curl https://altushost-swe.dl.sourceforge.net/project/gdcm/gdcm%202.x/GDCM%202.8.9/gdcm-2.8.9.tar.gz --output gdcm.tar.gz
RUN curl https://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%202.8.9/gdcm-2.8.9.tar.gz --output gdcm.tar.gz
RUN tar xzvf gdcm.tar.gz
RUN cd /
RUN mkdir gdcm-build
Expand All @@ -47,6 +46,19 @@ RUN cmake -DDCMTK_MODULES:STRING="ofstd;oflog;dcmdata;" \
RUN make -j8
RUN make DESTDIR=/nodejs/raccoon/models/dcmtk/linux-lib/ install

#Build official dcmtk
WORKDIR /
RUN wget https://github.com/DCMTK/dcmtk/archive/refs/tags/DCMTK-3.6.6.tar.gz
RUN tar xzvf DCMTK-3.6.6.tar.gz
WORKDIR /dcmtk-DCMTK-3.6.6
RUN mkdir build
WORKDIR /dcmtk-DCMTK-3.6.6/build
RUN cmake -DBUILD_SHARED_LIBS:BOOL=1 \
-DBUILD_APPS:BOOL=1 \
-DCMAKE_CXX_FLAGS:STRING="-fPIC" \
-DCMAKE_C_FLAGS:STRING="-fPIC" ../
RUN make -j8
RUN make install

#Set up node.js raccoon
WORKDIR /
Expand Down
3 changes: 3 additions & 0 deletions api/dicom-web/controller/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ async function getSeriesMetadata (params) {
$and : [
{
studyUID : params.studyID
} ,
{
seriesUID : params.seriesID
}
]

Expand Down

0 comments on commit 3ae90ba

Please sign in to comment.