mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Compare commits
50 Commits
3.25.3+201
...
4.5.2+2104
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74b3f31ee4 | ||
|
|
fc6f655cf7 | ||
|
|
01f6b41082 | ||
|
|
c8d36cf425 | ||
|
|
0f7900e237 | ||
|
|
a782896897 | ||
|
|
ce70ec3000 | ||
|
|
0403aa1208 | ||
|
|
5a011e6818 | ||
|
|
bb23531c6d | ||
|
|
69e8bcec7e | ||
|
|
d26552bb6f | ||
|
|
1360fb8001 | ||
|
|
fceae6b3cd | ||
|
|
b62a83ac83 | ||
|
|
d106c2ceb6 | ||
|
|
0c4690c97a | ||
|
|
ebb51363a1 | ||
|
|
debb4037a2 | ||
|
|
d7751f41d4 | ||
|
|
47be732839 | ||
|
|
7da025f19a | ||
|
|
cefd0a5c75 | ||
|
|
086903f0b4 | ||
|
|
a619f5b8b7 | ||
|
|
f0c42a8bc2 | ||
|
|
a6668c1fd2 | ||
|
|
ddcd2c868a | ||
|
|
e3c0c3a9d0 | ||
|
|
eb1354a42a | ||
|
|
448fb092a6 | ||
|
|
97c806aada | ||
|
|
263b64e9f9 | ||
|
|
bab97c1eab | ||
|
|
064611ced5 | ||
|
|
c7ea723349 | ||
|
|
81ec0452b9 | ||
|
|
eecb83fc99 | ||
|
|
c2ad0c38cc | ||
|
|
b2f25dac02 | ||
|
|
64ad7966fd | ||
|
|
9833519c9f | ||
|
|
7438aecf40 | ||
|
|
80ebadd26d | ||
|
|
d99c00d482 | ||
|
|
a3d86a1779 | ||
|
|
f008494a2d | ||
|
|
a44db5df62 | ||
|
|
03a0d9a16e | ||
|
|
15f46a40b9 |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# force LF in entrypoint.sh
|
||||||
|
entrypoint.sh text eol=lf
|
||||||
15
.travis.yml
15
.travis.yml
@@ -2,12 +2,17 @@ sudo: required
|
|||||||
language: bash
|
language: bash
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
install:
|
||||||
matrix:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
- env: HADOLINT="${HOME}/hadolint"
|
||||||
|
script:
|
||||||
|
- curl -sL -o ${HADOLINT} "https://github.com/hadolint/hadolint/releases/download/v1.23.0/hadolint-$(uname -s)-$(uname -m)"
|
||||||
|
- chmod 700 ${HADOLINT}
|
||||||
|
- git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 ${HADOLINT} --ignore DL4006 --ignore DL3008 --ignore DL3018
|
||||||
- env: TAG=martialblog/limesurvey-apache
|
- env: TAG=martialblog/limesurvey-apache
|
||||||
script: cd 3.0/apache; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
script: cd 4.0/apache; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
||||||
- env: TAG=martialblog/limesurvey-fpm
|
- env: TAG=martialblog/limesurvey-fpm
|
||||||
script: cd 3.0/fpm; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
script: cd 4.0/fpm; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
||||||
- env: TAG=martialblog/limesurvey-alpine
|
- env: TAG=martialblog/limesurvey-alpine
|
||||||
script: cd 3.0/fpm; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
script: cd 4.0/fpm; docker build -q -t $TAG . && cd ../..; ./tests/run.sh $TAG
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:7.4-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='3.25.3+201208'
|
ARG version='3.26.1+210427'
|
||||||
ARG sha256_checksum='2f21bc21252844226f8f28e4b728fd9011acdaef970067ec67c065a56d4b7cc8'
|
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -19,6 +19,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libtidy-dev \
|
||||||
|
libsodium-dev \
|
||||||
netcat \
|
netcat \
|
||||||
\
|
\
|
||||||
&& apt-get -y autoclean; apt-get -y autoremove; \
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
@@ -30,7 +32,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 && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
exif \
|
exif \
|
||||||
@@ -42,6 +44,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
ENV LIMESURVEY_VERSION=$version
|
ENV LIMESURVEY_VERSION=$version
|
||||||
@@ -69,7 +73,7 @@ RUN set -ex; \
|
|||||||
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
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
|
|
||||||
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.3+201208'
|
ARG version='3.26.1+210427'
|
||||||
ARG sha256_checksum='2f21bc21252844226f8f28e4b728fd9011acdaef970067ec67c065a56d4b7cc8'
|
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -10,6 +10,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
|
tidyhtml-dev \
|
||||||
|
libsodium-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
oniguruma-dev \
|
oniguruma-dev \
|
||||||
imap-dev \
|
imap-dev \
|
||||||
@@ -18,7 +20,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
# Install PHP Plugins
|
# Install PHP Plugins
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
docker-php-ext-configure gd && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
@@ -29,6 +31,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
# Download, unzip and chmod of LimeSurvey
|
# Download, unzip and chmod of LimeSurvey
|
||||||
@@ -48,6 +52,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -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.3+201208'
|
ARG version='3.26.1+210427'
|
||||||
ARG sha256_checksum='2f21bc21252844226f8f28e4b728fd9011acdaef970067ec67c065a56d4b7cc8'
|
ARG sha256_checksum='25ed4c956e4b839db05178d7a38f508799a5ea2556b540fec04aeb750817b900'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -19,6 +19,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libtidy-dev \
|
||||||
|
libsodium-dev \
|
||||||
netcat \
|
netcat \
|
||||||
\
|
\
|
||||||
&& apt-get -y autoclean; apt-get -y autoremove; \
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
@@ -30,7 +32,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 && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
exif \
|
exif \
|
||||||
@@ -42,6 +44,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
ENV LIMESURVEY_VERSION=$version
|
ENV LIMESURVEY_VERSION=$version
|
||||||
@@ -58,6 +62,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM php:7.4-apache
|
FROM php:7.4-apache
|
||||||
LABEL maintainer="markus@martialblog.de"
|
LABEL maintainer="markus@martialblog.de"
|
||||||
ARG version='4.3.29+201130'
|
ARG version='4.5.2+210426'
|
||||||
ARG sha256_checksum='a80d406efc35634adc34b1811a26079a6d00ae271f8721825ae9c72bf26de820'
|
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -19,6 +19,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libtidy-dev \
|
||||||
|
libsodium-dev \
|
||||||
netcat \
|
netcat \
|
||||||
curl \
|
curl \
|
||||||
\
|
\
|
||||||
@@ -31,7 +33,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 && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
exif \
|
exif \
|
||||||
@@ -43,6 +45,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
ENV LIMESURVEY_VERSION=$version
|
ENV LIMESURVEY_VERSION=$version
|
||||||
@@ -70,7 +74,7 @@ RUN set -ex; \
|
|||||||
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
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
|
|
||||||
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.3.29+201130'
|
ARG version='4.5.2+210426'
|
||||||
ARG sha256_checksum='a80d406efc35634adc34b1811a26079a6d00ae271f8721825ae9c72bf26de820'
|
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -10,6 +10,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
|
tidyhtml-dev \
|
||||||
|
libsodium-dev \
|
||||||
openldap-dev \
|
openldap-dev \
|
||||||
oniguruma-dev \
|
oniguruma-dev \
|
||||||
imap-dev \
|
imap-dev \
|
||||||
@@ -18,7 +20,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
# Install PHP Plugins
|
# Install PHP Plugins
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
docker-php-ext-configure gd && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
exif \
|
exif \
|
||||||
@@ -30,6 +32,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
# Download, unzip and chmod of LimeSurvey
|
# Download, unzip and chmod of LimeSurvey
|
||||||
@@ -49,6 +53,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -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.3.29+201130'
|
ARG version='4.5.2+210426'
|
||||||
ARG sha256_checksum='a80d406efc35634adc34b1811a26079a6d00ae271f8721825ae9c72bf26de820'
|
ARG sha256_checksum='001c3e416e319d1b64e502620fa2a9a32e69d9b4db2f6376f4a6293b43a063ea'
|
||||||
|
|
||||||
# Install OS dependencies
|
# Install OS dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@@ -19,6 +19,8 @@ RUN set -ex; \
|
|||||||
libpng-dev \
|
libpng-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libtidy-dev \
|
||||||
|
libsodium-dev \
|
||||||
netcat \
|
netcat \
|
||||||
\
|
\
|
||||||
&& apt-get -y autoclean; apt-get -y autoremove; \
|
&& apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
@@ -30,7 +32,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 && \
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/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 \
|
||||||
exif \
|
exif \
|
||||||
@@ -42,6 +44,8 @@ RUN set -ex; \
|
|||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
pgsql \
|
pgsql \
|
||||||
|
sodium \
|
||||||
|
tidy \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
ENV LIMESURVEY_VERSION=$version
|
ENV LIMESURVEY_VERSION=$version
|
||||||
@@ -58,6 +62,7 @@ RUN set -ex; \
|
|||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
COPY entrypoint.sh entrypoint.sh
|
COPY entrypoint.sh entrypoint.sh
|
||||||
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@@ -31,6 +31,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 +114,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
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,10 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
db:
|
db:
|
||||||
image: postgres:9.6-alpine
|
image: postgres:10-alpine
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- db-data:/var/lib/postgresql
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=limesurvey
|
- POSTGRES_USER=limesurvey
|
||||||
- POSTGRES_DB=limesurvey
|
- POSTGRES_DB=limesurvey
|
||||||
@@ -31,3 +33,4 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
limesurvey:
|
limesurvey:
|
||||||
|
db-data:
|
||||||
|
|||||||
@@ -20,7 +20,12 @@ services:
|
|||||||
- "ADMIN_PASSWORD=foobar"
|
- "ADMIN_PASSWORD=foobar"
|
||||||
lime-db:
|
lime-db:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
|
volumes:
|
||||||
|
- db-data:/var/lib/postgresql
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_USER=limesurvey"
|
- "POSTGRES_USER=limesurvey"
|
||||||
- "POSTGRES_DB=limesurvey"
|
- "POSTGRES_DB=limesurvey"
|
||||||
- "POSTGRES_PASSWORD=secret"
|
- "POSTGRES_PASSWORD=secret"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
FROM nginx
|
FROM nginx:stable
|
||||||
RUN apt-get update && \
|
LABEL maintainer="markus@martialblog.de"
|
||||||
apt-get install -y certbot curl python-certbot-nginx && \
|
|
||||||
apt-get -y autoclean; apt-get -y autoremove; \
|
RUN set -ex; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install --no-install-recommends -y \
|
||||||
|
certbot curl python-certbot-nginx && \
|
||||||
|
apt-get -y autoclean; apt-get -y autoremove; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod 700 /entrypoint.sh
|
RUN chmod 700 /entrypoint.sh
|
||||||
|
|
||||||
CMD ["/entrypoint.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user