Skip to content

Commit

Permalink
try to copy openslide so file as hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Mar 10, 2024
1 parent a5c7745 commit 89dd720
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM camicroscope/image-decoders:latest
FROM camicroscope/image-decoders:1

WORKDIR /var/www
RUN apt-get update
Expand Down Expand Up @@ -30,6 +30,9 @@ ENV BFBRIDGE_LOGLEVEL=WARN

RUN mkdir -p /images/uploading

COPY openslide_copy.sh .
RUN bash openslide_copy.sh

COPY requirements.txt .
RUN pip3 install -r requirements.txt --break-system-packages

Expand Down
13 changes: 13 additions & 0 deletions openslide_copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
lib_path=$(find /usr/local/lib/ -name 'libopenslide.so.1' -print -quit)

# Check if libopenslide.so.1 is found
if [ -n "$lib_path" ]; then
# Navigate to the directory containing libopenslide.so.1
cd "$(dirname "$lib_path")"

# copy from libopenslide.so.1 to libopenslide.so.0, and /usr/local/lib directly
cp libopenslide.so.1 libopenslide.so.0 || true
cp libopenslide.so.1 /usr/local/lib/libopenslide.so.0 || true
else
echo "libopenslide.so.1 not found in /usr/local/lib/"
fi

0 comments on commit 89dd720

Please sign in to comment.