mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
Make Nextcloud Scaleable (#127)
* Add Session Save Path * Update Dockerfile * Make Nextcloud scaleable * Use sed * remove php.ini * Update run.sh * Update Dockerfile * Update Dockerfile
This commit is contained in:
parent
1f7b934d36
commit
da78ba1175
@ -77,6 +77,7 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk
|
|||||||
&& echo "extension=iconv.so" > /etc/php7.1/conf.d/00_iconv.ini \
|
&& echo "extension=iconv.so" > /etc/php7.1/conf.d/00_iconv.ini \
|
||||||
&& echo "extension=smbclient.so" > /etc/php7.1/conf.d/00_smbclient.ini \
|
&& echo "extension=smbclient.so" > /etc/php7.1/conf.d/00_smbclient.ini \
|
||||||
&& echo "extension=redis.so" > /etc/php7.1/conf.d/redis.ini \
|
&& echo "extension=redis.so" > /etc/php7.1/conf.d/redis.ini \
|
||||||
|
&& sed -i 's|;session.save_path = "/tmp"|session.save_path = "/data/session"|g' /etc/php7.1/php.ini \
|
||||||
&& mkdir /nextcloud \
|
&& mkdir /nextcloud \
|
||||||
&& NEXTCLOUD_TARBALL="nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \
|
&& NEXTCLOUD_TARBALL="nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \
|
||||||
&& wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL} \
|
&& wget -q https://download.nextcloud.com/server/releases/${NEXTCLOUD_TARBALL} \
|
||||||
|
@ -12,6 +12,11 @@ ln -sf /apps2 /nextcloud &>/dev/null
|
|||||||
|
|
||||||
mv nextcloud fix && mv fix nextcloud # fix strange bug
|
mv nextcloud fix && mv fix nextcloud # fix strange bug
|
||||||
|
|
||||||
|
# Create folder for php sessions if not exists
|
||||||
|
if [ ! -d /data/session ]; then
|
||||||
|
mkdir -p /data/session;
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Updating permissions..."
|
echo "Updating permissions..."
|
||||||
for dir in /nextcloud /data /config /apps2 /etc/nginx /etc/php7.1 /var/log /var/lib/nginx /tmp /etc/s6.d; do
|
for dir in /nextcloud /data /config /apps2 /etc/nginx /etc/php7.1 /var/log /var/lib/nginx /tmp /etc/s6.d; do
|
||||||
if $(find $dir ! -user $UID -o ! -group $GID|egrep '.' -q); then
|
if $(find $dir ! -user $UID -o ! -group $GID|egrep '.' -q); then
|
||||||
|
@ -98,6 +98,7 @@ echo ";";
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed -i "s/localhost/$DOMAIN/g" /config/config.php
|
sed -i "s/localhost/$DOMAIN/g" /config/config.php
|
||||||
|
|
||||||
chown -R $UID:$GID /config /data
|
chown -R $UID:$GID /config /data
|
||||||
# Enable/disable apps. Note that this must be done after the ownCloud setup.
|
# Enable/disable apps. Note that this must be done after the ownCloud setup.
|
||||||
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
|
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user