Skip to content

Commit

Permalink
Adding ResourceSpace 9.4:
Browse files Browse the repository at this point in the history
* beginning with 9.4 the containers are based on ubuntu:latest
  • Loading branch information
suntorytimed committed Mar 3, 2021
1 parent 1d98d35 commit ddce1b0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
47 changes: 47 additions & 0 deletions Dockerfile.94
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM ubuntu:latest
MAINTAINER Stefan Weiberg <[email protected]>
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y \
vim \
imagemagick \
apache2 \
subversion \
ghostscript \
antiword \
poppler-utils \
libimage-exiftool-perl \
cron \
postfix \
wget \
php \
php-dev \
php-gd \
php-mysqlnd \
php-mbstring \
php-zip \
libapache2-mod-php \
ffmpeg \
libopencv-dev \
python3-opencv \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 10G/g" /etc/php/7.4/apache2/php.ini
RUN sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 10G/g" /etc/php/7.4/apache2/php.ini
RUN sed -i -e "s/max_execution_time\s*=\s*30/max_execution_time = 10000/g" /etc/php/7.4/apache2/php.ini
RUN sed -i -e "s/memory_limit\s*=\s*128M/memory_limit = 4G/g" /etc/php/7.4/apache2/php.ini

RUN printf '<Directory /var/www/>\n\
\tOptions FollowSymLinks\n\
</Directory>\n'\
>> /etc/apache2/sites-enabled/000-default.conf

ADD cronjob /etc/cron.daily/resourcespace

WORKDIR /var/www/html
RUN rm index.html
RUN svn co https://svn.resourcespace.com/svn/rs/releases/9.4 .
RUN mkdir filestore
RUN chmod 777 filestore
RUN chmod -R 777 include/
CMD apachectl -D FOREGROUND
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[![Docker Pulls](https://img.shields.io/docker/pulls/suntorytimed/resourcespace?style=flat-square)](https://hub.docker.com/r/suntorytimed/resourcespace)

A docker image for ResourceSpace based on Ubuntu 18.04 LTS including OpenCV and php7.
A docker image for ResourceSpace based on Ubuntu 20.04 LTS including OpenCV and php7. Older versions of ResourceSpace (9.2 and 9.3) are still based on 18.04 LTS.

Please report any issues on GitHub: https://github.com/suntorytimed/resourcespace-docker/issues

It is based on 18.04 LTS and not 20.04 LTS as ResourceSpace requires xpdf, which has been removed from Ubuntu 20.04 and replaced by poppler.
Starting with ResourceSpace 9.4 the containers are going to be based on Ubuntu:latest (currently 20.04 LTS), as I tested poppler as a proper xpdf replacement - which isn't shipped in 20.04 anymore - in ResourceSpace.

## docker-compose example

Expand Down

0 comments on commit ddce1b0

Please sign in to comment.