mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
35 Commits
3.16.1+190
...
3.21.2+191
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65996ad6b8 | ||
|
|
cd55481064 | ||
|
|
dabd4ecce7 | ||
|
|
3454ed078a | ||
|
|
c2ee09bb8c | ||
|
|
8f1903aa15 | ||
|
|
a829071849 | ||
|
|
a968c01029 | ||
|
|
325416c959 | ||
|
|
44fac58a28 | ||
|
|
1a63aa37a7 | ||
|
|
e4d7e3550f | ||
|
|
26623a1d2c | ||
|
|
5b37d301ad | ||
|
|
9e5b903b28 | ||
|
|
69194ef8a8 | ||
|
|
4a6fd295f3 | ||
|
|
e75090d0fd | ||
|
|
93514b0fb9 | ||
|
|
2d23179e3e | ||
|
|
051a22eb41 | ||
|
|
2fdc20f862 | ||
|
|
b35d566cda | ||
|
|
2ef998b0d7 | ||
|
|
02e2c9dc3a | ||
|
|
68881a29f1 | ||
|
|
10c98a5eb4 | ||
|
|
a665b512e4 | ||
|
|
0e5571811f | ||
|
|
26a95472a7 | ||
|
|
423f4c6133 | ||
|
|
80bc3f4319 | ||
|
|
c30e0878e2 | ||
|
|
b44b4c2371 | ||
|
|
c655c4cf53 |
18
README.md
18
README.md
@@ -29,7 +29,9 @@ LimeSurvey requires an external database (MySQL, PostgreSQL) to run. See *docker
|
|||||||
|
|
||||||
To preserve the uploaded files assign the upload folder into a volume. See *docker-compose.yml* for example.
|
To preserve the uploaded files assign the upload folder into a volume. See *docker-compose.yml* for example.
|
||||||
|
|
||||||
Path: */var/www/html/upload/*
|
Path: */var/www/html/upload/surveys*
|
||||||
|
|
||||||
|
**Hint**: The mounted directory must be owned by the webserver user (e.g. www-data)
|
||||||
|
|
||||||
# LimeSurvey Configuration
|
# LimeSurvey Configuration
|
||||||
|
|
||||||
@@ -62,6 +64,20 @@ To change to LimeSurvey configuration, you can mount a Volume into the Container
|
|||||||
|
|
||||||
For further details on the settings see: https://manual.limesurvey.org/Optional_settings#Advanced_Path_Settings
|
For further details on the settings see: https://manual.limesurvey.org/Optional_settings#Advanced_Path_Settings
|
||||||
|
|
||||||
|
# Running this image with docker-compose
|
||||||
|
|
||||||
|
The easiest way to get a fully featured and functional setup is using a docker-compose file. Several examples are provided in the repository.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose up
|
||||||
|
|
||||||
|
# Frontend
|
||||||
|
http://localhost:8080/
|
||||||
|
|
||||||
|
# Backend
|
||||||
|
http://localhost:8080/index.php/admin
|
||||||
|
```
|
||||||
|
|
||||||
# References
|
# References
|
||||||
|
|
||||||
- https://www.limesurvey.org/
|
- https://www.limesurvey.org/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.2-apache
|
FROM php:7.2-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.16.1+190314'
|
ARG version='3.21.2+191216'
|
||||||
ARG sha256_checksum='cfed9f8f8e4aa7fe70ae6c3e946f6f33d8aa3aab38f7ac994054af595b11f0a3'
|
ARG sha256_checksum='fe28f0c5aa0c88c0a15f6b962bea007644c9e546a3d5ed8bc86b71a2b5920f32'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -10,6 +10,8 @@ RUN set -ex; \
|
|||||||
apt-get install --no-install-recommends -y \
|
apt-get install --no-install-recommends -y \
|
||||||
\
|
\
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libjpeg-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libc-client-dev \
|
libc-client-dev \
|
||||||
libkrb5-dev \
|
libkrb5-dev \
|
||||||
@@ -17,7 +19,7 @@ RUN set -ex; \
|
|||||||
libpq-dev \
|
libpq-dev \
|
||||||
netcat \
|
netcat \
|
||||||
\
|
\
|
||||||
&& apt-get autoclean; apt-get autoremove; \
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Link LDAP library for PHP ldap extension
|
# Link LDAP library for PHP ldap extension
|
||||||
@@ -26,6 +28,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
# Install PHP Plugins and Configure PHP imap plugin
|
# Install PHP Plugins and Configure PHP imap plugin
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
||||||
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
|
||||||
docker-php-ext-install -j5 \
|
docker-php-ext-install -j5 \
|
||||||
gd \
|
gd \
|
||||||
@@ -57,7 +60,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
|||||||
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
||||||
\
|
\
|
||||||
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||||
rm -f "/tmp/${version}.tar.gz" && \
|
rm -f "/tmp/${version}.tar.gz" && \
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
context: fpm-alpine/
|
context: fpm-alpine/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/upload/:/var/www/html/upload/
|
- /tmp/upload/surveys:/var/www/html/upload/surveys
|
||||||
- lime:/var/www/html
|
- lime:/var/www/html
|
||||||
links:
|
links:
|
||||||
- lime-db
|
- lime-db
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
context: fpm/
|
context: fpm/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/upload/:/var/www/html/upload/
|
- /tmp/upload/surveys:/var/www/html/upload/surveys
|
||||||
- lime:/var/www/html
|
- lime:/var/www/html
|
||||||
links:
|
links:
|
||||||
- lime-db
|
- lime-db
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
context: apache/
|
context: apache/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/upload/:/var/www/html/upload/
|
- /tmp/upload/surveys:/var/www/html/upload/surveys
|
||||||
links:
|
links:
|
||||||
- lime-db
|
- lime-db
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
context: apache/
|
context: apache/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/upload/:/var/www/html/upload/
|
- /tmp/upload/surveys:/var/www/html/upload/surveys
|
||||||
links:
|
links:
|
||||||
- lime-db
|
- lime-db
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
FROM php:7.2-fpm-alpine
|
FROM php:7.2-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.16.1+190314'
|
ARG version='3.21.2+191216'
|
||||||
ARG sha256_checksum='cfed9f8f8e4aa7fe70ae6c3e946f6f33d8aa3aab38f7ac994054af595b11f0a3'
|
ARG sha256_checksum='fe28f0c5aa0c88c0a15f6b962bea007644c9e546a3d5ed8bc86b71a2b5920f32'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apk add --no-cache --virtual .build-deps \
|
apk add --no-cache --virtual .build-deps \
|
||||||
|
freetype-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
|
libjpeg-turbo-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
imap-dev \
|
imap-dev \
|
||||||
postgresql-dev && \
|
postgresql-dev && \
|
||||||
@@ -14,6 +16,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
# Install PHP Plugins
|
# Install PHP Plugins
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr ; \
|
||||||
docker-php-ext-configure imap --with-imap-ssl && \
|
docker-php-ext-configure imap --with-imap-ssl && \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
gd \
|
gd \
|
||||||
@@ -30,7 +33,7 @@ RUN set -ex; \
|
|||||||
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
||||||
\
|
\
|
||||||
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.2-fpm
|
FROM php:7.2-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.16.1+190314'
|
ARG version='3.21.2+191216'
|
||||||
ARG sha256_checksum='cfed9f8f8e4aa7fe70ae6c3e946f6f33d8aa3aab38f7ac994054af595b11f0a3'
|
ARG sha256_checksum='fe28f0c5aa0c88c0a15f6b962bea007644c9e546a3d5ed8bc86b71a2b5920f32'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -10,6 +10,8 @@ RUN set -ex; \
|
|||||||
apt-get install --no-install-recommends -y \
|
apt-get install --no-install-recommends -y \
|
||||||
\
|
\
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libjpeg-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libc-client-dev \
|
libc-client-dev \
|
||||||
libkrb5-dev \
|
libkrb5-dev \
|
||||||
@@ -17,7 +19,7 @@ RUN set -ex; \
|
|||||||
libpq-dev \
|
libpq-dev \
|
||||||
netcat \
|
netcat \
|
||||||
\
|
\
|
||||||
&& apt-get autoclean; apt-get autoremove; \
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Link LDAP library for PHP ldap extension
|
# Link LDAP library for PHP ldap extension
|
||||||
@@ -26,6 +28,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
# Install PHP Plugins and Configure PHP imap plugin
|
# Install PHP Plugins and Configure PHP imap plugin
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
||||||
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
|
||||||
docker-php-ext-install -j5 \
|
docker-php-ext-install -j5 \
|
||||||
gd \
|
gd \
|
||||||
@@ -44,7 +47,7 @@ ENV LIMESURVEY_VERSION=$version
|
|||||||
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
echo "${sha256_checksum} /tmp/${version}.tar.gz" | sha256sum -c - && \
|
||||||
\
|
\
|
||||||
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||||
rm -f "/tmp/${version}.tar.gz" && \
|
rm -f "/tmp/${version}.tar.gz" && \
|
||||||
|
|||||||
Reference in New Issue
Block a user