Skip to content

Commit 89dd720

Browse files
committed
try to copy openslide so file as hotfix
1 parent a5c7745 commit 89dd720

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM camicroscope/image-decoders:latest
1+
FROM camicroscope/image-decoders:1
22

33
WORKDIR /var/www
44
RUN apt-get update
@@ -30,6 +30,9 @@ ENV BFBRIDGE_LOGLEVEL=WARN
3030

3131
RUN mkdir -p /images/uploading
3232

33+
COPY openslide_copy.sh .
34+
RUN bash openslide_copy.sh
35+
3336
COPY requirements.txt .
3437
RUN pip3 install -r requirements.txt --break-system-packages
3538

openslide_copy.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
lib_path=$(find /usr/local/lib/ -name 'libopenslide.so.1' -print -quit)
2+
3+
# Check if libopenslide.so.1 is found
4+
if [ -n "$lib_path" ]; then
5+
# Navigate to the directory containing libopenslide.so.1
6+
cd "$(dirname "$lib_path")"
7+
8+
# copy from libopenslide.so.1 to libopenslide.so.0, and /usr/local/lib directly
9+
cp libopenslide.so.1 libopenslide.so.0 || true
10+
cp libopenslide.so.1 /usr/local/lib/libopenslide.so.0 || true
11+
else
12+
echo "libopenslide.so.1 not found in /usr/local/lib/"
13+
fi

0 commit comments

Comments
 (0)