Commit 774eb882 authored by Dave Lane's avatar Dave Lane
Browse files

updated to latest version of limesurvey

parent 9f3deb40
FROM php:7.1.2-apache
FROM php:7-apache
ENV DOWNLOAD_URL https://www.limesurvey.org/stable-release?download=2014:limesurvey2641%20170310targz
RUN apt-get update
# Install Postgre PDO
RUN apt-get install -y libpq-dev \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& apt-get install -y \
RUN apt-get update && apt-get install -y \
apt-utils \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
......@@ -17,7 +10,12 @@ RUN apt-get install -y libpq-dev \
zlib1g-dev \
libc-client-dev \
libkrb5-dev \
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
unzip
RUN docker-php-ext-configure pdo_mysql \
&& docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
......@@ -25,18 +23,35 @@ RUN apt-get install -y libpq-dev \
&& docker-php-ext-install zip \
&& docker-php-ext-configure imap --with-imap-ssl --with-kerberos \
&& docker-php-ext-install imap \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists/*
#Download and install LimeSurvey
&& curl -SL "$DOWNLOAD_URL" -o /tmp/lime.tar.gz \
&& tar xf /tmp/lime.tar.gz limesurvey --strip-components=1 -C /var/www/html \
&& chown -R www-data:www-data /var/www/html \
#Download and install LimeSurvey
#ENV LS_URL https://www.limesurvey.org/stable-release?download=2104:limesurvey2673%20170728targz
#ENV LS_URL https://www.limesurvey.org/stable-release?download=2216:limesurvey2730%20171219zip
ENV LS_URL https://www.limesurvey.org/stable-release?download=2404:limesurvey3121%20180616targz
#ENV LS_URL https://www.limesurvey.org/stable-release?download=2230:limesurvey305%20180118targz
RUN curl -SL "$LS_URL" -o /tmp/lime.tar.gz
#RUN curl -SL "$LS_URL" -o /tmp/lime.zip
RUN cd /var/www/html && tar xfvz /tmp/lime.tar.gz limesurvey --strip-components=1
#RUN cd /var/www/html && unzip /tmp/lime.zip
RUN chown -R www-data:www-data /var/www/html \
&& rm -f /tmp/lime.tar.gz \
&& chmod -R 755 /var/www/html/tmp \
&& chmod -R 755 /var/www/html/upload \
&& chmod -R 755 /var/www/html/application/config \
&& mkdir -p /var/lib/php5 \
&& chown www-data:www-data /var/lib/php5
&& chmod -R 755 /var/www/html/application/config
RUN mkdir -p /var/www/php5 \
&& chown www-data:www-data /var/www/php5
RUN mv /var/www/html/application/config /var/www/html/application/config.orig \
&& mkdir /var/www/html/application/config
RUN mv /var/www/html/plugins /var/www/html/plugins.orig \
&& mkdir /var/www/html/plugins
VOLUME /var/www/html/upload
VOLUME /var/www/html/application/config
\ No newline at end of file
VOLUME /var/www/html/application/config
VOLUME /var/www/html/plugins
VOLUME /var/www/reference
RUN cp -a /var/www/html/application/config.orig/* /var/www/html/application/config
RUN cp -a /var/www/html/plugins.orig/* /var/www/html/plugins
RUN chown -R www-data:www-data /var/www/html /var/www/reference
version: '2'
version: '3'
services:
db:
image: 'postgres:9.6.2-alpine'
environment:
- POSTGRES_PASSWORD=654321
expose:
- '5432'
lime:
image: 'decsis/docker-limesurvey'
links:
- db
restart: unless-stopped
image: oeru/limesurvey
ports:
- '80:80'
- '127.0.0.1:8082:80'
volumes:
- '/home/data/survey.oeru.org/upload:/var/www/html/upload'
- '/home/data/survey.oeru.org/plugins:/var/www/html/plugins'
- '/home/data/survey.oeru.org/config:/var/www/html/application/config'
- '/home/data/survey.oeru.org/reference:/var/www/reference'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment