mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
10 Commits
4.5.0+2104
...
3.26.3+210
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd28fb2796 | ||
|
|
8830f66b10 | ||
|
|
456a2ab4d2 | ||
|
|
fd744e5c46 | ||
|
|
f1b7efb2d5 | ||
|
|
74b3f31ee4 | ||
|
|
fc6f655cf7 | ||
|
|
01f6b41082 | ||
|
|
c8d36cf425 | ||
|
|
0f7900e237 |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# force LF in entrypoint.sh
|
||||||
|
entrypoint.sh text eol=lf
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:7.4-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.25.22+210413'
|
ARG version='3.26.3+210511'
|
||||||
ARG sha256_checksum='3c63e2ba7e1755a50fce928ec7541e81c9ae0b4c5df576ed5151831a8d74580e'
|
ARG sha256_checksum='1366a497ac853305334558d919d8e25961ef44313481dd6a8b7150ab3e67fd07'
|
||||||
|
ARG USER=root
|
||||||
|
ARG LISTEN_PORT=80
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -71,9 +73,10 @@ RUN set -ex; \
|
|||||||
\
|
\
|
||||||
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||||
rm -f "/tmp/limesurvey.tar.gz" && \
|
rm -f "/tmp/limesurvey.tar.gz" && \
|
||||||
chown -R www-data:www-data /var/www/html
|
chown -R www-data:www-data /var/www/html /etc/apache2
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ URL_FORMAT=${URL_FORMAT:-'path'}
|
|||||||
DEBUG=${DEBUG:-0}
|
DEBUG=${DEBUG:-0}
|
||||||
DEBUG_SQL=${DEBUG_SQL:-0}
|
DEBUG_SQL=${DEBUG_SQL:-0}
|
||||||
|
|
||||||
|
LISTEN_PORT=${LISTEN_PORT:-"80"}
|
||||||
|
|
||||||
if [ -z "$DB_PASSWORD" ]; then
|
if [ -z "$DB_PASSWORD" ]; then
|
||||||
echo >&2 'Error: Missing DB_PASSWORD'
|
echo >&2 'Error: Missing DB_PASSWORD'
|
||||||
exit 1
|
exit 1
|
||||||
@@ -33,6 +35,11 @@ if [ -z "$ADMIN_PASSWORD" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LISTEN_PORT" != "80" ]; then
|
||||||
|
echo "Info: Customizing Apache Listen port to $LISTEN_PORT"
|
||||||
|
sed -i "s/80/$LISTEN_PORT/" /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if database is available
|
# Check if database is available
|
||||||
if [ -z "$DB_SOCK" ]; then
|
if [ -z "$DB_SOCK" ]; then
|
||||||
until nc -z -v -w30 $DB_HOST $DB_PORT
|
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm-alpine
|
FROM php:7.4-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.25.22+210413'
|
ARG version='3.26.3+210511'
|
||||||
ARG sha256_checksum='3c63e2ba7e1755a50fce928ec7541e81c9ae0b4c5df576ed5151831a8d74580e'
|
ARG sha256_checksum='1366a497ac853305334558d919d8e25961ef44313481dd6a8b7150ab3e67fd07'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm
|
FROM php:7.4-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.25.22+210413'
|
ARG version='3.26.3+210511'
|
||||||
ARG sha256_checksum='3c63e2ba7e1755a50fce928ec7541e81c9ae0b4c5df576ed5151831a8d74580e'
|
ARG sha256_checksum='1366a497ac853305334558d919d8e25961ef44313481dd6a8b7150ab3e67fd07'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:7.4-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.5.0+210412'
|
ARG version='4.6.1+210510'
|
||||||
ARG sha256_checksum='601053b254424d76445b158da4a0f559f202528c2a7afb13c2364ab118329389'
|
ARG sha256_checksum='6051b14d7c92e466799ed02710b7ecb0203613663769e93a4759e4a5b4175d85'
|
||||||
|
ARG USER=root
|
||||||
|
ARG LISTEN_PORT=80
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -72,9 +74,10 @@ RUN set -ex; \
|
|||||||
\
|
\
|
||||||
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||||
rm -f "/tmp/limesurvey.tar.gz" && \
|
rm -f "/tmp/limesurvey.tar.gz" && \
|
||||||
chown -R www-data:www-data /var/www/html
|
chown -R www-data:www-data /var/www/html /etc/apache2
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
|
USER $USER
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ URL_FORMAT=${URL_FORMAT:-'path'}
|
|||||||
DEBUG=${DEBUG:-0}
|
DEBUG=${DEBUG:-0}
|
||||||
DEBUG_SQL=${DEBUG_SQL:-0}
|
DEBUG_SQL=${DEBUG_SQL:-0}
|
||||||
|
|
||||||
|
LISTEN_PORT=${LISTEN_PORT:-"80"}
|
||||||
|
|
||||||
if [ -z "$DB_PASSWORD" ]; then
|
if [ -z "$DB_PASSWORD" ]; then
|
||||||
echo >&2 'Error: Missing DB_PASSWORD'
|
echo >&2 'Error: Missing DB_PASSWORD'
|
||||||
exit 1
|
exit 1
|
||||||
@@ -37,6 +39,11 @@ if [ -z "$ADMIN_PASSWORD" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LISTEN_PORT" != "80" ]; then
|
||||||
|
echo "Info: Customizing Apache Listen port to $LISTEN_PORT"
|
||||||
|
sed -i "s/80/$LISTEN_PORT/" /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if database is available
|
# Check if database is available
|
||||||
if [ -z "$DB_SOCK" ]; then
|
if [ -z "$DB_SOCK" ]; then
|
||||||
until nc -z -v -w30 $DB_HOST $DB_PORT
|
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm-alpine
|
FROM php:7.4-fpm-alpine
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.5.0+210412'
|
ARG version='4.6.1+210510'
|
||||||
ARG sha256_checksum='601053b254424d76445b158da4a0f559f202528c2a7afb13c2364ab118329389'
|
ARG sha256_checksum='6051b14d7c92e466799ed02710b7ecb0203613663769e93a4759e4a5b4175d85'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-fpm
|
FROM php:7.4-fpm
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.5.0+210412'
|
ARG version='4.6.1+210510'
|
||||||
ARG sha256_checksum='601053b254424d76445b158da4a0f559f202528c2a7afb13c2364ab118329389'
|
ARG sha256_checksum='6051b14d7c92e466799ed02710b7ecb0203613663769e93a4759e4a5b4175d85'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|||||||
@@ -13,15 +13,19 @@ Dockerfile to build a [LimeSurvey](https://limesurvey.org) Image for the Docker
|
|||||||
## Supported tags and respective Dockerfile links
|
## Supported tags and respective Dockerfile links
|
||||||
|
|
||||||
- [`4-apache`, `4.<BUILD-NUMBER>-apache`, `latest` ](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/apache/Dockerfile)
|
- [`4-apache`, `4.<BUILD-NUMBER>-apache`, `latest` ](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/apache/Dockerfile)
|
||||||
|
- [`4-apache-rootless`, `4.<BUILD-NUMBER>-apache-rootless`](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/apache/Dockerfile)
|
||||||
- [`4-fpm`, `4.<BUILD-NUMBER>-fpm`](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/fpm/Dockerfile)
|
- [`4-fpm`, `4.<BUILD-NUMBER>-fpm`](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/fpm/Dockerfile)
|
||||||
- [`4-fpm-alpine`, `4.<BUILD-NUMBER>-fpm-alpine`](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/fpm-alpine/Dockerfile)
|
- [`4-fpm-alpine`, `4.<BUILD-NUMBER>-fpm-alpine`](https://github.com/martialblog/docker-limesurvey/blob/master/4.0/fpm-alpine/Dockerfile)
|
||||||
- [`3-apache`, `3.<BUILD-NUMBER>-apache`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/apache/Dockerfile)
|
- [`3-apache`, `3.<BUILD-NUMBER>-apache`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/apache/Dockerfile)
|
||||||
|
- [`3-apache-rootless`, `3.<BUILD-NUMBER>-apache-rootless`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/apache/Dockerfile)
|
||||||
- [`3-fpm`, `3.<BUILD-NUMBER>-fpm`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/fpm/Dockerfile)
|
- [`3-fpm`, `3.<BUILD-NUMBER>-fpm`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/fpm/Dockerfile)
|
||||||
- [`3-fpm-alpine`, `3.<BUILD-NUMBER>-fpm-alpine`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/fpm-alpine/Dockerfile)
|
- [`3-fpm-alpine`, `3.<BUILD-NUMBER>-fpm-alpine`](https://github.com/martialblog/docker-limesurvey/blob/master/3.0/fpm-alpine/Dockerfile)
|
||||||
|
|
||||||
# Using the Apache Image
|
# Using the Apache Image
|
||||||
|
|
||||||
The apache image comes with an Apache Webserver and PHP installed.
|
The `apache` image comes with an Apache Webserver and PHP installed.
|
||||||
|
|
||||||
|
This image is also available as `rootless` with `www-data` as default user.
|
||||||
|
|
||||||
## Apache Configuration
|
## Apache Configuration
|
||||||
|
|
||||||
@@ -31,6 +35,8 @@ To change to Apache Webserver configuration, mount a Volume into the Container a
|
|||||||
|
|
||||||
See the example configuration provided.
|
See the example configuration provided.
|
||||||
|
|
||||||
|
If you want to run Apache on a non-privileged port inside the container, just specify a environment variable `LISTEN_PORT` (e.g. `LISTEN_PORT=8080`).
|
||||||
|
|
||||||
# Using the fpm Image
|
# 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. See *docker-compose.fpm.yml* for example.
|
To use the fpm image, you need an additional web server that can proxy http-request to the fpm-port of the container. See *docker-compose.fpm.yml* for example.
|
||||||
@@ -112,6 +118,7 @@ For further details on the settings see: https://manual.limesurvey.org/Data_encr
|
|||||||
| ENCRYPT_KEYPAIR | Data encryption keypair |
|
| ENCRYPT_KEYPAIR | Data encryption keypair |
|
||||||
| ENCRYPT_PUBLIC_KEY | Data encryption public key |
|
| ENCRYPT_PUBLIC_KEY | Data encryption public key |
|
||||||
| ENCRYPT_SECRET_KEY | Data encryption secret key |
|
| ENCRYPT_SECRET_KEY | Data encryption secret key |
|
||||||
|
| LISTEN_PORT | Apache: Listen port. Default: 80 |
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
6
makefile
6
makefile
@@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
apache3:
|
apache3:
|
||||||
docker build --pull -t martialblog/limesurvey:3-apache 3.0/apache
|
docker build --pull -t martialblog/limesurvey:3-apache 3.0/apache
|
||||||
|
apache3-rootless:
|
||||||
|
docker build --pull --build-arg USER=www-data --build-arg LISTEN_PORT=8080 -t martialblog/limesurvey:3-apache-rootless 3.0/apache
|
||||||
apache4:
|
apache4:
|
||||||
docker build --pull -t martialblog/limesurvey:4-apache 4.0/apache
|
docker build --pull -t martialblog/limesurvey:3-apache 3.0/apache
|
||||||
|
apache4-rootless:
|
||||||
|
docker build --pull --build-arg USER=www-data --build-arg LISTEN_PORT=8080 -t martialblog/limesurvey:4-apache-rootless 4.0/apache
|
||||||
fpm-alpine3:
|
fpm-alpine3:
|
||||||
docker build --pull -t martialblog/limesurvey:3-fpm-alpine 3.0/fpm-alpine
|
docker build --pull -t martialblog/limesurvey:3-fpm-alpine 3.0/fpm-alpine
|
||||||
fpm-alpine4:
|
fpm-alpine4:
|
||||||
|
|||||||
Reference in New Issue
Block a user