Skip to content

Commit

Permalink
Merge pull request #5 from camicroscope/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
birm authored May 1, 2019
2 parents 9709e37 + 63b6ea4 commit b92c218
Show file tree
Hide file tree
Showing 173 changed files with 64,135 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM ubuntu:bionic

### update
RUN apt-get -q update
Expand All @@ -7,24 +7,14 @@ RUN apt-get -q -y dist-upgrade
RUN apt-get clean
RUN apt-get -q update

RUN apt-get -q -y install openssh-server git autoconf automake make libtool pkg-config cmake apache2 libapache2-mod-fcgid libfcgi0ldbl
RUN apt-get -q -y install zlib1g-dev libpng12-dev libjpeg-dev libtiff5-dev libgdk-pixbuf2.0-dev libxml2-dev libsqlite3-dev libcairo2-dev libglib2.0-dev
RUN apt-get -q -y install g++ libmemcached-dev libjpeg-turbo8-dev
RUN apt-get -q -y install openssh-server 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
RUN a2enmod rewrite
RUN a2enmod fcgid

WORKDIR /images
VOLUME ["/images"]

RUN mkdir /root/src
COPY . /root/src
WORKDIR /root/src


## get our configuration files
WORKDIR /root/src
#RUN git clone https://[email protected]/tcpan/iip-openslide-docker.git

## replace apache's default fcgi config with ours.
RUN rm /etc/apache2/mods-enabled/fcgid.conf
COPY ./fcgid.conf /etc/apache2/mods-enabled/fcgid.conf
Expand All @@ -38,9 +28,6 @@ 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

## setup a mount point for images. - this is external to the docker container.
RUN mkdir -p /mnt/images


WORKDIR /root/src

Expand Down Expand Up @@ -69,22 +56,17 @@ RUN make
RUN make install

### iipsrv
WORKDIR /root/src
RUN git clone https://bitbucket.org/tcpan/iipsrv.git iipsrv

## build iipsrv
WORKDIR /root/src/iipsrv
RUN git checkout tags/iip-openslide-v0.3.1
RUN ./autogen.sh
#RUN ./configure --enable-static --enable-shared=no
RUN ./configure
RUN make

## create a directory for iipsrv's fcgi binary
RUN mkdir -p /var/www/localhost/fcgi-bin/
RUN cp /root/src/iipsrv/src/iipsrv.fcgi /var/www/localhost/fcgi-bin/

#COPY apache2-iipsrv-fcgid.conf /root/src/iip-openslide-docker/apache2-iipsrv-fcgid.conf


CMD service apache2 start && while true; do sleep 1000; done
#CMD service apache2 start && while true; do sleep 1000; done
CMD apachectl -D FOREGROUND
10 changes: 10 additions & 0 deletions iipsrv/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Ruven Pillay <[email protected]>

With help from:
Moravian Library in Brno
Chiara Marmo
Rob "Bubba" Hines
Petr Pridal
Michal Becak
The National Library of Wales
and many others ...
674 changes: 674 additions & 0 deletions iipsrv/COPYING

Large diffs are not rendered by default.

Loading

0 comments on commit b92c218

Please sign in to comment.