Compare commits

..

4 Commits
85 .. 97

Author SHA1 Message Date
sparklyballs 0cc6bdbea1 Merge pull request #47 from linuxserver/version_bump
bump install to 12.0.4 and fix continuation lines
2017-12-12 22:03:29 +00:00
sparklyballs e5dc93fd8e bump install to 12.0.4 and fix continuation lines 2017-12-12 14:36:09 +00:00
sparklyballs 705610b073 Merge pull request #45 from linuxserver/php_fixes
sed php.ini for opcache requirements
2017-10-15 18:55:03 +01:00
sparklyballs c4a8cafb98 sed php.ini for opcache requirements 2017-10-15 10:21:52 +01:00
2 changed files with 22 additions and 19 deletions
+20 -19
View File
@@ -1,19 +1,19 @@
FROM lsiobase/alpine.nginx:3.6
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# package version
ENV NEXTCLOUD_VER="12.0.3"
ENV NEXTCLOUD_VER="12.0.4"
# environment settings
ENV NEXTCLOUD_PATH="/config/www/nextcloud"
# install build-dependencies
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
@@ -25,8 +25,7 @@ RUN \
re2c \
samba-dev \
zlib-dev && \
# install runtime packages
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
@@ -62,30 +61,32 @@ RUN \
sudo \
tar \
unzip && \
# fetch php smbclient source
echo "**** compile smbclient ****" && \
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
# compile smbclient
cd /tmp/smbclient && \
phpize7 && \
./configure \
--with-php-config=/usr/bin/php-config7 && \
make && \
make install && \
# uninstall build-dependencies
apk del --purge \
build-dependencies && \
# configure php and nginx for nextcloud
echo "**** configure php and nginx for nextcloud ****" && \
echo "extension="smbclient.so"" > /etc/php7/conf.d/00_smbclient.ini && \
sed -i \
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/g' \
/etc/php7/php.ini && \
-e 's/;opcache.enable.*=.*/opcache.enable=1/g' \
-e 's/;opcache.interned_strings_buffer.*=.*/opcache.interned_strings_buffer=8/g' \
-e 's/;opcache.max_accelerated_files.*=.*/opcache.max_accelerated_files=10000/g' \
-e 's/;opcache.memory_consumption.*=.*/opcache.memory_consumption=128/g' \
-e 's/;opcache.save_comments.*=.*/opcache.save_comments=1/g' \
-e 's/;opcache.revalidate_freq.*=.*/opcache.revalidate_freq=1/g' \
-e 's/;always_populate_raw_post_data.*=.*/always_populate_raw_post_data=-1/g' \
/etc/php7/php.ini && \
sed -i \
'/opcache.enable=1/a opcache.enable_cli=1' \
/etc/php7/php.ini && \
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
# cleanup
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
+2
View File
@@ -81,6 +81,8 @@ If updating to nextcloud 12 you will need to comment out line `add_header X-Fram
## Versions
+ **12.12.17:** Bump default install to 12.0.4, fix continuation lines.
+ **15.10.17:** Sed php.ini for opcache requirements in newer nextcloud versions.
+ **20.09.17:** Bump default install to 12.0.3.
+ **19.08.17:** Bump default install to 12.0.2.
+ **25.05.17:** Rebase to alpine 3.6.