Compare commits

...

17 Commits

Author SHA1 Message Date
Markus Opolka
b1fdd3fc64 Update to Version 3.6.3+180416 2018-04-18 17:24:55 +02:00
Markus Opolka
84ac1699df Add Update Script 2018-04-16 12:10:50 +02:00
Markus Opolka
b6449a4c22 Update to Version 3.6.2+180406 2018-04-16 12:08:48 +02:00
Markus Opolka
b87a6f75ac Upgrade to Version 3.6.1+180329 2018-04-10 08:45:36 +02:00
Markus Opolka
7096496410 Update to Version 3.5.4+180320 2018-03-28 20:59:38 +02:00
Markus Opolka
cbce400815 Update to Version 3.5.3+180316 2018-03-21 07:51:51 +01:00
Markus Opolka
a7ff191922 Update to Version 3.5.2+180315 2018-03-16 09:44:53 +01:00
Markus Opolka
e14dc2d585 Update to Version 3.5.0+180309 2018-03-15 09:11:26 +01:00
Markus Opolka
798351b5aa Update to Version 3.4.4+180305 2018-03-11 20:46:44 +01:00
Markus Opolka
94c030a008 Update README 2018-03-09 14:24:52 +01:00
Markus Opolka
91d07cc52b Update README 2018-03-09 13:33:34 +01:00
Markus Opolka
c557c38898 Upgrade to Version 3.4.3+180227 2018-03-07 10:36:40 +01:00
Markus Opolka
25653a4676 Update to Version 3.4.1+180221 2018-02-23 16:47:27 +01:00
Markus Opolka
9255e9bbb9 Update README and provide example Apache configuration 2018-02-23 16:46:27 +01:00
Markus Opolka
e39df9a86e Update to Version 3.4.0+180219 2018-02-22 15:24:29 +01:00
Markus Opolka
e36a3274ab Merge pull request #5 from martialblog/3-3-1
Update to Version 3.3.1
2018-02-20 15:11:57 +01:00
Markus Opolka
60a31f3c60 Update to Version 3.3.1 2018-02-20 14:32:50 +01:00
6 changed files with 109 additions and 4 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
\#*
.\#*
.venv/

View File

@@ -3,8 +3,41 @@
# LimeSurvey Docker # LimeSurvey Docker
Dockerfile to build a [LimeSurvey](https://limesurvey.org) image for the Docker container platform. Dockerfile to build a [LimeSurvey](https://limesurvey.org) Image for the Docker container platform.
# Persistence # Using the apache image
The apache image comes with an Apache Webserver and PHP installed.
# Apache Configuration
To change to Apache Webserver configuration mount a Volume into the Container at:
- /etc/apache2/sites-available/000-default.conf
See the example configuration provided.
# Using the fpm image
To use the fpm image you need an additional web server that can proxy http-request to the fpm-port of the container.
# Using an external database
LimeSurvey requires an external database (MySQL, PostgreSQL) to run. See *docker-compose.yml* for example.
# Persistent data
To preserve the uploaded files assign the upload folder into a volume. See *docker-compose.yml* for details. To preserve the uploaded files assign the upload folder into a volume. See *docker-compose.yml* for details.
# LimeSurvey Configuration
To change to LimeSurvey configuration simply mount a Volume into the Container at:
- /my-data/config.php:/var/www/html/application/config/config.php
**Hint**: If this configuration is present, the LimeSurvey Installer will not run.
# References
- https://www.limesurvey.org/
- https://github.com/LimeSurvey/LimeSurvey/

21
apache-example.conf Normal file
View File

@@ -0,0 +1,21 @@
<VirtualHost *:80>
ServerAdmin foo@bar.com
DocumentRoot /var/www/html
Alias /lime "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

View File

@@ -1,6 +1,6 @@
FROM php:7.2-apache FROM php:7.2-apache
LABEL maintainer="markus@martialblog.de" LABEL maintainer="markus@martialblog.de"
ARG version='3.3.0+180209' ARG version='3.6.3+180416'
# Install OS dependencies # Install OS dependencies
RUN apt-get update && \ RUN apt-get update && \

View File

@@ -1,6 +1,6 @@
FROM php:7.2-fpm FROM php:7.2-fpm
LABEL maintainer="markus@martialblog.de" LABEL maintainer="markus@martialblog.de"
ARG version='3.3.0+180209' ARG version='3.6.3+180416'
# Install OS dependencies # Install OS dependencies
RUN apt-get update && \ RUN apt-get update && \

47
upgrade.py Executable file
View File

@@ -0,0 +1,47 @@
#!/usr/bin/env python3
import feedparser
import sys
import subprocess
dockerfile_apache = 'apache/Dockerfile'
dockerfile_fpm = 'fpm/Dockerfile'
limesv_feed_url = 'https://github.com/LimeSurvey/LimeSurvey/releases.atom'
docker_feed_url = 'https://github.com/martialblog/docker-limesurvey/releases.atom'
limesv_feed = feedparser.parse(limesv_feed_url)
docker_feed = feedparser.parse(docker_feed_url)
limesv_current_release = limesv_feed.entries[0].title_detail.value
docker_current_release = docker_feed.entries[0].title_detail.value
if limesv_current_release == docker_current_release:
print('Nothing to do.')
sys.exit(0)
print('New Version {} available. Upgrading...'.format(limesv_current_release))
commit_message = 'Update to Version {}'.format(limesv_current_release)
# Dockerfiles
regexp = 's/[0-9]\.[0-9]\.[0-9]+[0-9]*/{new_version}/'.format(new_version=limesv_current_release)
subprocess.call(['sed', '-i', '-e', regexp, dockerfile_apache])
subprocess.call(['sed', '-i', '-e', regexp, dockerfile_fpm])
print('> Updated Dockerfiles')
# Git Commit/Tag
# subprocess.call(['git', 'checkout', '-b', limesv_current_release])
subprocess.call(['git', 'add', dockerfile_apache])
subprocess.call(['git', 'add', dockerfile_fpm])
subprocess.call(['git', 'commit', '-m', commit_message])
subprocess.call(['git', 'tag', limesv_current_release])
print('> Created new Commit and Tag')
# Git Push
# subprocess.call(['git', 'push', 'origin', limesv_current_release])
subprocess.call(['git', 'push'])
subprocess.call(['git', 'push', 'origin', '--tags'])
print('> Pushed to new Branch')
sys.exit(0)