Compare commits

...

21 Commits

Author SHA1 Message Date
Simon L
ebac4c928b Merge pull request #3701 from nextcloud/enh/noid/change-trafficpolicy 2023-11-08 11:18:02 +01:00
Simon L
17c413039d adjust version number
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-08 11:17:24 +01:00
Simon L
fbc9885713 also adjust script
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-08 11:14:47 +01:00
Simon L
1e8250af93 change externaltrafficpolicy
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-08 11:03:50 +01:00
Simon L
3ea6a956e4 fix detail
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 21:47:31 +01:00
Simon L
e133814052 increase to 7.6.2
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 20:20:27 +01:00
Simon L
b5e07bae90 comment some more details
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 20:17:21 +01:00
Simon L
dee51b3804 Merge pull request #3682 from nextcloud/fix/3671/skip-starting-container 2023-11-06 16:10:47 +01:00
Simon L
7f3fbbde0d update values for default storage size
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 16:08:10 +01:00
Simon L
9c3dedfebc create new version
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 16:05:47 +01:00
Simon L
c33e8be21b Merge pull request #3694 from nextcloud/enh/noid/change-storage-size 2023-11-06 16:04:43 +01:00
Simon L
33a87aeb18 Merge pull request #3693 from nextcloud/enh/noid/disable-it 2023-11-06 16:04:32 +01:00
Simon L
6066a4b097 Merge pull request #3692 from nextcloud/fix/rwx 2023-11-06 16:02:51 +01:00
Simon L
ce079d1e0d disaable limiting the listen.allowed clients again
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 16:01:29 +01:00
Simon L
b8c70b73ca change defaults of NEXTCLOUD*STORAGE_SIZE
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-06 16:00:49 +01:00
Richard Steinmetz
7968fab485 fix: request shared RWX nextcloud volume
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-11-06 15:54:26 +01:00
Simon L
bc5ff285d9 Merge pull request #3688 from nextcloud/dependabot/docker/Containers/redis/redis-7.2.3-alpine 2023-11-06 14:56:22 +01:00
Simon L
279865686c Merge pull request #3687 from nextcloud/dependabot/docker/Containers/clamav/clamav/clamav-1.2.1-14 2023-11-06 14:56:12 +01:00
dependabot[bot]
e875c8eba3 Bump redis from 7.2.2-alpine to 7.2.3-alpine in /Containers/redis
Bumps redis from 7.2.2-alpine to 7.2.3-alpine.

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 13:05:14 +00:00
dependabot[bot]
717de9090d Bump clamav/clamav from 1.2.1-12 to 1.2.1-14 in /Containers/clamav
Bumps clamav/clamav from 1.2.1-12 to 1.2.1-14.

---
updated-dependencies:
- dependency-name: clamav/clamav
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 12:46:23 +00:00
Simon L
bdb4a8cfed do not start container if it is started already
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-05 20:06:25 +01:00
11 changed files with 45 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
# Probably from this file: https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.1/alpine/Dockerfile
FROM clamav/clamav:1.2.1-12
FROM clamav/clamav:1.2.1-14
COPY clamav.conf /tmp/clamav.conf

View File

@@ -131,24 +131,26 @@ if ! sudo -E -u www-data bash /entrypoint.sh; then
exit 1
fi
while [ -z "$(dig nextcloud-aio-apache A +short +search)" ]; do
echo "Waiting for nextcloud-aio-apache to start..."
sleep 5
done
set -x
if [ "$APACHE_PORT" = 443 ] || [ "$APACHE_IP_BINDING" = "127.0.0.1" ] || [ "$APACHE_IP_BINDING" = "::1" ]; then
IPv4_ADDRESS_APACHE="$(dig nextcloud-aio-apache A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"
IPv6_ADDRESS_APACHE="$(dig nextcloud-aio-apache AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
IPv4_ADDRESS_MASTERCONTAINER="$(dig nextcloud-aio-mastercontainer A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"
IPv6_ADDRESS_MASTERCONTAINER="$(dig nextcloud-aio-mastercontainer AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
sed -i "s|^;listen.allowed_clients|listen.allowed_clients|" /usr/local/etc/php-fpm.d/www.conf
sed -i "s|listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1,$IPv4_ADDRESS_APACHE,$IPv6_ADDRESS_APACHE,$IPv4_ADDRESS_MASTERCONTAINER,$IPv6_ADDRESS_MASTERCONTAINER|" /usr/local/etc/php-fpm.d/www.conf
sed -i "/^listen.allowed_clients/s/,,/,/g" /usr/local/etc/php-fpm.d/www.conf
sed -i "/^listen.allowed_clients/s/,$//" /usr/local/etc/php-fpm.d/www.conf
grep listen.allowed_clients /usr/local/etc/php-fpm.d/www.conf
fi
set +x
# The below was disabled again because it fails on some deployment methods, e.g. on kubernetes
# There is apparently no way to make this work reliably automatically
# while [ -z "$(dig nextcloud-aio-apache A +short +search)" ]; do
# echo "Waiting for nextcloud-aio-apache to start..."
# sleep 5
# done
#
# set -x
# if [ "$APACHE_PORT" = 443 ] || [ "$APACHE_IP_BINDING" = "127.0.0.1" ] || [ "$APACHE_IP_BINDING" = "::1" ]; then
# IPv4_ADDRESS_APACHE="$(dig nextcloud-aio-apache A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"
# IPv6_ADDRESS_APACHE="$(dig nextcloud-aio-apache AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
# IPv4_ADDRESS_MASTERCONTAINER="$(dig nextcloud-aio-mastercontainer A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"
# IPv6_ADDRESS_MASTERCONTAINER="$(dig nextcloud-aio-mastercontainer AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
#
# sed -i "s|^;listen.allowed_clients|listen.allowed_clients|" /usr/local/etc/php-fpm.d/www.conf
# sed -i "s|listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1,$IPv4_ADDRESS_APACHE,$IPv6_ADDRESS_APACHE,$IPv4_ADDRESS_MASTERCONTAINER,$IPv6_ADDRESS_MASTERCONTAINER|" /usr/local/etc/php-fpm.d/www.conf
# sed -i "/^listen.allowed_clients/s/,,/,/g" /usr/local/etc/php-fpm.d/www.conf
# sed -i "/^listen.allowed_clients/s/,$//" /usr/local/etc/php-fpm.d/www.conf
# grep listen.allowed_clients /usr/local/etc/php-fpm.d/www.conf
# fi
# set +x
exec "$@"

View File

@@ -1,5 +1,5 @@
# From https://github.com/docker-library/redis/blob/master/7.0/alpine/Dockerfile
FROM redis:7.2.2-alpine
FROM redis:7.2.3-alpine
COPY --chmod=775 start.sh /start.sh

View File

@@ -1,6 +1,6 @@
name: nextcloud-aio-helm-chart
description: A generated Helm Chart for Nextcloud AIO from Skippbox Kompose
version: 7.5.2-dev
version: 7.5.2-dev4
apiVersion: v2
keywords:
- latest

View File

@@ -10,6 +10,7 @@ metadata:
namespace: {{ .Values.NAMESPACE }}
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: "{{ .Values.APACHE_PORT }}"
port: {{ .Values.APACHE_PORT }}

View File

@@ -10,7 +10,7 @@ spec:
storageClassName: {{ .Values.STORAGE_CLASS }}
{{- end }}
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: {{ .Values.NEXTCLOUD_STORAGE_SIZE }}

View File

@@ -12,6 +12,7 @@ metadata:
namespace: {{ .Values.NAMESPACE }}
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: "{{ .Values.TALK_PORT }}"
port: {{ .Values.TALK_PORT }}

View File

@@ -132,6 +132,8 @@ find ./ -name '*deployment.yaml' -exec sed -i "/hostPort:/d" \{} \;
# shellcheck disable=SC1083
find ./ -name '*persistentvolumeclaim.yaml' -exec sed -i "s|ReadOnlyMany|ReadWriteOnce|" \{} \;
# shellcheck disable=SC1083
find ./ -name 'nextcloud-aio-nextcloud-persistentvolumeclaim.yaml' -exec sed -i "s|ReadWriteOnce|ReadWriteMany|" \{} \;
# shellcheck disable=SC1083
find ./ -name '*persistentvolumeclaim.yaml' -exec sed -i "/accessModes:/i\ \ {{- if .Values.STORAGE_CLASS }}" \{} \;
# shellcheck disable=SC1083
find ./ -name '*persistentvolumeclaim.yaml' -exec sed -i "/accessModes:/i\ \ storageClassName: {{ .Values.STORAGE_CLASS }}" \{} \;
@@ -147,6 +149,8 @@ find ./ -name '*talk*' -exec sed -i "s|$TALK_PORT|{{ .Values.TALK_PORT }}|" \{}
find ./ -name '*apache-service.yaml' -exec sed -i "/^spec:/a\ \ type: LoadBalancer" \{} \;
# shellcheck disable=SC1083
find ./ -name '*talk-service.yaml' -exec sed -i "/^spec:/a\ \ type: LoadBalancer" \{} \;
# shellcheck disable=SC1083
find ./ -name '*service.yaml' -exec sed -i "/type: LoadBalancer/a\ \ externalTrafficPolicy: Local" \{} \;
echo '---' > /tmp/talk-service.copy
# shellcheck disable=SC1083
find ./ -name '*talk-service.yaml' -exec cat \{} \; >> /tmp/talk-service.copy
@@ -219,6 +223,8 @@ echo 'STORAGE_CLASS: # By setting this, you can adjust the storage class
for variable in "${VOLUME_VARIABLE[@]}"; do
echo "$variable: 1Gi # You can change the size of the $(echo "$variable" | sed 's|_STORAGE_SIZE||;s|_|-|g' | tr '[:upper:]' '[:lower:]') volume that default to 1Gi with this value" >> /tmp/sample.conf
done
sed -i "s|NEXTCLOUD_STORAGE_SIZE: 1Gi|NEXTCLOUD_STORAGE_SIZE: 5Gi|" /tmp/sample.conf
sed -i "s|NEXTCLOUD_DATA_STORAGE_SIZE: 1Gi|NEXTCLOUD_DATA_STORAGE_SIZE: 5Gi|" /tmp/sample.conf
mv /tmp/sample.conf ../helm-chart/values.yaml
ENABLED_VARIABLES="$(grep -oP '^[A-Z_]+_ENABLED' ../helm-chart/values.yaml)"

View File

@@ -41,8 +41,8 @@ CLAMAV_STORAGE_SIZE: 1Gi # You can change the size of the clamav volume th
DATABASE_STORAGE_SIZE: 1Gi # You can change the size of the database volume that default to 1Gi with this value
DATABASE_DUMP_STORAGE_SIZE: 1Gi # You can change the size of the database-dump volume that default to 1Gi with this value
ELASTICSEARCH_STORAGE_SIZE: 1Gi # You can change the size of the elasticsearch volume that default to 1Gi with this value
NEXTCLOUD_STORAGE_SIZE: 1Gi # You can change the size of the nextcloud volume that default to 1Gi with this value
NEXTCLOUD_DATA_STORAGE_SIZE: 1Gi # You can change the size of the nextcloud-data volume that default to 1Gi with this value
NEXTCLOUD_STORAGE_SIZE: 5Gi # You can change the size of the nextcloud volume that default to 1Gi with this value
NEXTCLOUD_DATA_STORAGE_SIZE: 5Gi # You can change the size of the nextcloud-data volume that default to 1Gi with this value
NEXTCLOUD_TRUSTED_CACERTS_STORAGE_SIZE: 1Gi # You can change the size of the nextcloud-trusted-cacerts volume that default to 1Gi with this value
ONLYOFFICE_STORAGE_SIZE: 1Gi # You can change the size of the onlyoffice volume that default to 1Gi with this value
REDIS_STORAGE_SIZE: 1Gi # You can change the size of the redis volume that default to 1Gi with this value

View File

@@ -33,12 +33,21 @@ class DockerController
$this->PerformRecursiveContainerStart($dependency, $pullContainer);
}
// Don't start if container is already running
// This is expected to happen if a container is defined in depends_on of multiple containers
if ($container->GetRunningState() instanceof RunningState) {
error_log('Not starting ' . $id . ' because it was already started.');
return;
}
// Skip database image pull if the last shutdown was not clean
if ($id === 'nextcloud-aio-database') {
if ($this->dockerActionManager->GetDatabasecontainerExitCode() > 0) {
$pullContainer = false;
error_log('Not pulling the latest database image because the container was not correctly shut down.');
}
}
$this->dockerActionManager->DeleteContainer($container);
$this->dockerActionManager->CreateVolumes($container);
if ($pullContainer) {

View File

@@ -16,7 +16,7 @@
</header>
<div class="content">
<h1>Nextcloud AIO v7.6.1</h1>
<h1>Nextcloud AIO v7.6.2</h1>
{# Add 2nd tab warning #}
<script type="text/javascript" src="second-tab-warning.js"></script>