Skip to content

Commit

Permalink
Merge pull request #18 from CGDogan/biof
Browse files Browse the repository at this point in the history
Bioformats
  • Loading branch information
birm authored Aug 31, 2023
2 parents a025c04 + 08fc35d commit 13f3e07
Show file tree
Hide file tree
Showing 18 changed files with 1,998 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ Makefile.in
/ltmain.sh
/m4/
/missing

# BioFormats either copied by Docker of copied manually and locally
BFBridge/
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy
COPY apache2.conf /etc/apache2/apache2.conf
COPY ports.conf /etc/apache2/ports.conf

## Print BioFormats errors, etc. to Docker console (stderr)
#RUN ln -sf /proc/self/fd/1 /var/log/apache2/error.log

### iipsrv
WORKDIR /root/src/iipsrv
RUN ./autogen.sh
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Containerized IIP

## building and running

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/

docker build . -t iipsrv

docker run iipsrv -d -p 4010:80
Expand Down
2 changes: 2 additions & 0 deletions apache2-iipsrv-fcgid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ FcgidInitialEnv MAX_CVT "5000"
#FcgidInitialEnv FILESYSTEM_PREFIX "/mnt/images/"
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib"
FcgidInitialEnv MAX_TILE_CACHE_SIZE "64"
FcgidInitialEnv BFBRIDGE_CACHEDIR "/tmp/"
FcgidInitialEnv BFBRIDGE_CLASSPATH "/usr/lib/java"

# Define the idle timeout as unlimited and the number of
# processes we want
Expand Down
2 changes: 2 additions & 0 deletions fcgid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ FcgidInitialEnv MAX_CVT "5000"
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib"
FcgidInitialEnv MAX_TILE_CACHE_SIZE "64"
FcgidInitialEnv CORS "*"
FcgidInitialEnv BFBRIDGE_CACHEDIR "/tmp/"
FcgidInitialEnv BFBRIDGE_CLASSPATH "/usr/lib/java"

# Define the idle timeout as unlimited and the number of
# processes we want
Expand Down
2 changes: 2 additions & 0 deletions iip_httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ FastCgiServer /var/www/localhost/fcgi-bin/iipsrv.fcgi \
-initial-env JPEG_QUALITY=50 \
-initial-env MAX_CVT=3000 \
-initial-env CORS=* \
-initial-env BFBRIDGE_CACHEDIR=/tmp/ \
-initial-env BFBRIDGE_CLASSPATH=/usr/lib/java \
-listen-queue-depth 2048 \
-processes 1
Loading

0 comments on commit 13f3e07

Please sign in to comment.