Commit 295862df authored by Dave Lane's avatar Dave Lane
Browse files

upgrade limesurvey to 20190731 stable release, with multiple tweaks to the...

upgrade limesurvey to 20190731 stable release, with multiple tweaks to the container to reflect the move to Debian Buster as base container
parent 774eb882
......@@ -5,8 +5,9 @@ RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpng-dev \
libldap2-dev \
libzip-dev \
zlib1g-dev \
libc-client-dev \
libkrb5-dev \
......@@ -15,7 +16,7 @@ RUN apt-get update && apt-get install -y \
RUN docker-php-ext-configure pdo_mysql \
&& docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install -j$(nproc) iconv mcrypt \
RUN docker-php-ext-install -j$(nproc) iconv \
&& 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 \
......@@ -26,14 +27,16 @@ RUN docker-php-ext-install -j$(nproc) iconv mcrypt \
&& rm -rf /var/lib/apt/lists/*
#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=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
ENV LS_URL https://www.limesurvey.org/stable-release?download=2611:limesurvey3179%20190731targz
RUN curl -SL "$LS_URL" -o /tmp/lime.tar.gz
RUN cd /var/www/html
#RUN mkdir -p limesurvey tmp upload application/config
# need to strip off extraneous directory components, including limewire
RUN tar xfvz /tmp/lime.tar.gz --strip-components=9
RUN ls -l
#RUN cd /var/www/html
RUN chown -R www-data:www-data /var/www/html \
&& rm -f /tmp/lime.tar.gz \
&& chmod -R 755 /var/www/html/tmp \
......@@ -55,3 +58,4 @@ 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
RUN apt-get update && apt-get install -y sudo less vim mariadb-client && rm -rf /var/lib/apt/lists/*
LimeSurvey
==========
Forked from danturner/limesurvey
Forked from danturner/limesurvey by the OERu - our container is called oeru/limesurvey by default.
LimeSurvey - the most popular
Free Open Source Software survey tool on the web.
......@@ -12,7 +12,6 @@ https://www.limesurvey.org/en/
Containerised version of LimeSurvey that does NOT package Database in the same container.
Prepared to connect with postgres database
## Usage
To run limesurvey in 80 port just:
......@@ -55,3 +54,25 @@ You can use docker compose to automate the above command if you create a file ca
And run:
docker-compose up -d
## Upgrades to Limesurvey
First make sure you have a valid, current backup of your limesurvey database - `mysqldump limesurvey > limesurvey-YYYYMMMDD.sql` or similar.
Update the Dockerfile with the latest package (right click, Save Link As... on https://www.limesurvey.org/stable-release, look for the tar.gz version.
Run `docker build -t oeru/limesurvey .` from within the docker directory.
Push the updated container: `docker push oeru/limesurvey` (if you haven't run a docker push on that system before, you'll have to log into your docker host)
Pull the new container on your host (unless you built the container there) `docker-compose pull` in the docker-compose directory, and the launch the new container `docker-compose up -d && docker-compose logs -f` - the logs -f will let you see the output of the container running, which might give insights if it's not working. If you're done watching the log, use CTRL-C to quit it.
To finish the update:
In the data directory's config dir (/home/data/limesurvery/config in our sample) back up the config.php file - `cp config.php config.php-backup`
In the docker-compose directory, run `docker-compose pull` and then log into the container: you'll need to copy the contents of the application/config.orig into application/config - `cd /var/www/html/application/ && cp -a config.orig/* config/`
And then you'll need to copy your config file back into place (backup the config file there as a reference): `cp config/config.php config/config.php.dist && cp config/config.php-backup config/config.php`
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