Skip to content

Commit 10e6732

Browse files
authored
Merge pull request #21 from camicroscope/develop
For 3.11.0
2 parents 030c8df + bade175 commit 10e6732

19 files changed

+2004
-49
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ Makefile.in
8080
/ltmain.sh
8181
/m4/
8282
/missing
83+
84+
# BioFormats either copied by Docker of copied manually and locally
85+
BFBridge/

Dockerfile

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal
1+
FROM camicroscope/image-decoders:latest
22

33
### update
44
ARG DEBIAN_FRONTEND=noninteractive
@@ -8,11 +8,10 @@ RUN apt-get -q -y dist-upgrade
88
RUN apt-get clean
99
RUN apt-get -q update
1010

11-
RUN apt-get -q -y install git autoconf automake make libtool pkg-config cmake apache2 libapache2-mod-fcgid libfcgi0ldbl zlib1g-dev libpng-dev libjpeg-dev libtiff5-dev libgdk-pixbuf2.0-dev libxml2-dev libsqlite3-dev libcairo2-dev libglib2.0-dev g++ libmemcached-dev libjpeg-turbo8-dev
11+
RUN apt-get -q -y install git autoconf automake make libtool pkg-config apache2 libapache2-mod-fcgid libfcgi0ldbl g++ libmemcached-dev libjpeg-turbo8-dev
1212
RUN a2enmod rewrite
1313
RUN a2enmod fcgid
1414

15-
RUN mkdir /root/src
1615
COPY . /root/src
1716
WORKDIR /root/src
1817

@@ -29,31 +28,8 @@ RUN ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy
2928
COPY apache2.conf /etc/apache2/apache2.conf
3029
COPY ports.conf /etc/apache2/ports.conf
3130

32-
WORKDIR /root/src
33-
34-
### openjpeg version in ubuntu 14.04 is 1.3, too old and does not have openslide required chroma subsampled images support. download 2.1.0 from source and build
35-
RUN git clone https://github.com/uclouvain/openjpeg.git --branch=v2.3.0
36-
RUN mkdir /root/src/openjpeg/build
37-
WORKDIR /root/src/openjpeg/build
38-
RUN cmake -DBUILD_JPIP=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_CODEC=ON -DBUILD_PKGCONFIG_FILES=ON ../
39-
RUN make
40-
RUN make install
41-
42-
### Openslide
43-
WORKDIR /root/src
44-
## get my fork from openslide source cdoe
45-
RUN git clone https://github.com/openslide/openslide.git
46-
47-
## build openslide
48-
WORKDIR /root/src/openslide
49-
RUN git checkout tags/v3.4.1
50-
RUN autoreconf -i
51-
#RUN ./configure --enable-static --enable-shared=no
52-
# may need to set OPENJPEG_CFLAGS='-I/usr/local/include' and OPENJPEG_LIBS='-L/usr/local/lib -lopenjp2'
53-
# and the corresponding TIFF flags and libs to where bigtiff lib is installed.
54-
RUN ./configure
55-
RUN make
56-
RUN make install
31+
## Print BioFormats errors, etc. to Docker console (stderr)
32+
#RUN ln -sf /proc/self/fd/1 /var/log/apache2/error.log
5733

5834
### iipsrv
5935
WORKDIR /root/src/iipsrv

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2019, caMicroscope
3+
Copyright (c) 2018-2023, caMicroscope
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Containerized IIP
33

44
## building and running
55

6+
Unless using caMicroscope Distro Docker, [BFBridge](https://github.com/camicroscope/BFBridge) needs to be cloned and placed next to iipsrv/, so that this project's root iipimage/ has subfolders iipimage/ and BFBridge/
7+
68
docker build . -t iipsrv
79

810
docker run iipsrv -d -p 4010:80

apache2-iipsrv-fcgid.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ FcgidInitialEnv MAX_CVT "5000"
2727
#FcgidInitialEnv FILESYSTEM_PREFIX "/mnt/images/"
2828
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib"
2929
FcgidInitialEnv MAX_TILE_CACHE_SIZE "64"
30+
FcgidInitialEnv BFBRIDGE_CACHEDIR "/tmp/"
31+
FcgidInitialEnv BFBRIDGE_CLASSPATH "/usr/lib/java"
32+
FcgidInitialEnv BFBRIDGE_LOGLEVEL "WARN"
3033

3134
# Define the idle timeout as unlimited and the number of
3235
# processes we want

fcgid.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ FcgidInitialEnv MAX_CVT "5000"
2727
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib"
2828
FcgidInitialEnv MAX_TILE_CACHE_SIZE "64"
2929
FcgidInitialEnv CORS "*"
30+
FcgidInitialEnv BFBRIDGE_CACHEDIR "/tmp/"
31+
FcgidInitialEnv BFBRIDGE_CLASSPATH "/usr/lib/java"
32+
FcgidInitialEnv BFBRIDGE_LOGLEVEL "WARN"
3033

3134
# Define the idle timeout as unlimited and the number of
3235
# processes we want

iip_httpd.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ FastCgiServer /var/www/localhost/fcgi-bin/iipsrv.fcgi \
2828
-initial-env JPEG_QUALITY=50 \
2929
-initial-env MAX_CVT=3000 \
3030
-initial-env CORS=* \
31+
-initial-env BFBRIDGE_CACHEDIR=/tmp/ \
32+
-initial-env BFBRIDGE_CLASSPATH=/usr/lib/java \
33+
-initial-env BFBRIDGE_LOGLEVEL=WARN \
3134
-listen-queue-depth 2048 \
3235
-processes 1

0 commit comments

Comments
 (0)