2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-06-25 23:36:02 +02:00

Merge pull request #76 from nupplaphil/task/official_image

Fixings for offical-images
This commit is contained in:
Hypolite Petovan 2019-08-26 17:59:07 -04:00 committed by GitHub
commit af1aa857f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 29 additions and 59 deletions

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-apache-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -121,7 +118,8 @@ RUN { \
VOLUME /var/www/html
RUN a2enmod rewrite remoteip ;\
RUN set -ex;\
a2enmod rewrite remoteip ;\
{\
echo RemoteIPHeader X-Real-IP ;\
echo RemoteIPTrustedProxy 10.0.0.0/8 ;\
@ -150,7 +148,6 @@ RUN set -ex; \
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]

0
2019.06/apache/cron.sh Normal file → Executable file
View file

0
2019.06/apache/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
FROM php:7.3-fpm-alpine
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -91,7 +90,8 @@ RUN set -ex; \
apk del .build-deps;
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -135,7 +135,6 @@ RUN set -ex; \
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.06/fpm-alpine/cron.sh Normal file → Executable file
View file

0
2019.06/fpm-alpine/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-fpm-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -142,7 +139,6 @@ RUN set -ex; \
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.06/fpm/cron.sh Normal file → Executable file
View file

0
2019.06/fpm/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-apache-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -121,7 +118,8 @@ RUN { \
VOLUME /var/www/html
RUN a2enmod rewrite remoteip ;\
RUN set -ex;\
a2enmod rewrite remoteip ;\
{\
echo RemoteIPHeader X-Real-IP ;\
echo RemoteIPTrustedProxy 10.0.0.0/8 ;\
@ -136,7 +134,6 @@ ENV FRIENDICA_ADDONS 2019.09-dev
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]

0
2019.09-dev/apache/cron.sh Normal file → Executable file
View file

0
2019.09-dev/apache/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
FROM php:7.3-fpm-alpine
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -91,7 +90,8 @@ RUN set -ex; \
apk del .build-deps;
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -121,7 +121,6 @@ ENV FRIENDICA_ADDONS 2019.09-dev
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.09-dev/fpm-alpine/cron.sh Normal file → Executable file
View file

0
2019.09-dev/fpm-alpine/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-fpm-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -128,7 +125,6 @@ ENV FRIENDICA_ADDONS 2019.09-dev
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.09-dev/fpm/cron.sh Normal file → Executable file
View file

0
2019.09-dev/fpm/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-apache-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -121,7 +118,8 @@ RUN { \
VOLUME /var/www/html
RUN a2enmod rewrite remoteip ;\
RUN set -ex;\
a2enmod rewrite remoteip ;\
{\
echo RemoteIPHeader X-Real-IP ;\
echo RemoteIPTrustedProxy 10.0.0.0/8 ;\
@ -136,7 +134,6 @@ ENV FRIENDICA_ADDONS 2019.09-rc
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]

0
2019.09-rc/apache/cron.sh Normal file → Executable file
View file

0
2019.09-rc/apache/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
FROM php:7.3-fpm-alpine
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -91,7 +90,8 @@ RUN set -ex; \
apk del .build-deps;
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -121,7 +121,6 @@ ENV FRIENDICA_ADDONS 2019.09-rc
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.09-rc/fpm-alpine/cron.sh Normal file → Executable file
View file

0
2019.09-rc/fpm-alpine/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,6 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.3-fpm-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -45,9 +44,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -98,7 +94,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -128,7 +125,6 @@ ENV FRIENDICA_ADDONS 2019.09-rc
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]

0
2019.09-rc/fpm/cron.sh Normal file → Executable file
View file

0
2019.09-rc/fpm/entrypoint.sh Normal file → Executable file
View file

View file

@ -1,5 +1,4 @@
FROM php:%%PHP_VERSION%%-%%VARIANT%%
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -90,7 +89,8 @@ RUN set -ex; \
apk del .build-deps;
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -120,7 +120,6 @@ ENV FRIENDICA_ADDONS %%VERSION%%
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["%%CMD%%"]

View file

@ -1,5 +1,4 @@
FROM php:%%PHP_VERSION%%-%%VARIANT%%-stretch
LABEL maintainer="Philipp Holzer <admin@philipp.info>"
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -44,9 +43,6 @@ RUN set -ex; \
curl \
libzip-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
@ -97,7 +93,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
RUN { \
RUN set -ex; \
{ \
echo 'opcache.enable=1' ; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
@ -127,7 +124,6 @@ ENV FRIENDICA_ADDONS %%VERSION%%
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/friendica/config/
RUN chmod +x /*.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["%%CMD%%"]

0
docker-cron.sh Normal file → Executable file
View file

0
docker-entrypoint.sh Normal file → Executable file
View file

View file

@ -2,7 +2,6 @@
set -Eeuo pipefail
declare -A release_channel=(
[production]='2019.06'
[stable]='2019.06'
[latest]='2019.06'
)

View file

@ -18,7 +18,7 @@ declare -A base=(
)
declare -A extras=(
[apache]='\nRUN a2enmod rewrite remoteip ;\\\n {\\\n echo RemoteIPHeader X-Real-IP ;\\\n echo RemoteIPTrustedProxy 10.0.0.0/8 ;\\\n echo RemoteIPTrustedProxy 172.16.0.0/12 ;\\\n echo RemoteIPTrustedProxy 192.168.0.0/16 ;\\\n } > /etc/apache2/conf-available/remoteip.conf;\\\n a2enconf remoteip'
[apache]='\nRUN set -ex;\\\n a2enmod rewrite remoteip ;\\\n {\\\n echo RemoteIPHeader X-Real-IP ;\\\n echo RemoteIPTrustedProxy 10.0.0.0/8 ;\\\n echo RemoteIPTrustedProxy 172.16.0.0/12 ;\\\n echo RemoteIPTrustedProxy 192.168.0.0/16 ;\\\n } > /etc/apache2/conf-available/remoteip.conf;\\\n a2enconf remoteip'
[fpm]=''
[fpm-alpine]=''
)